Query Pipeline
Developmentquery-pipelineQuery Pipeline is an Agent Skill for development published in the dotnet/efcore repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Implementation details for EF Core LINQ query translation, SQL generation, and bulk operations (ExecuteUpdate/ExecuteDelete). Use when changing expression visitors, SqlExpressions, QuerySqlGenerator, ShaperProcessingExpressionVisitor, UpdateExpression, DeleteExpression, or related classes.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/dotnet/efcore/blob/HEAD/.agents/skills/query-pipeline/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/query-pipeline, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Query Pipeline
Stages
- Preprocessing
- Translation
- Postprocessing
- Compilation
- SQL Generation
Validation
ToQueryString()shows generated SQL without executingExpressionPrinterdumps expression trees at any pipeline stage- SQL baselines verified via
AssertSql()in provider functional tests and the generated SQL corresponds to the LINQ query in the base method