# Query Pipeline

> Query 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.

- Skill name: `query-pipeline`
- Category: [Development](https://www.openparable.com/skill/development/1)
- Source: https://github.com/dotnet/efcore/blob/HEAD/.agents/skills/query-pipeline/SKILL.md
- Repository: dotnet/efcore (14,740 GitHub stars when collected)

## SKILL.md

# Query Pipeline

## Stages

1. **Preprocessing**
2. **Translation**
3. **Postprocessing**
4. **Compilation**
5. **SQL Generation**

## Validation

- `ToQueryString()` shows generated SQL without executing
- `ExpressionPrinter` dumps 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

---

Source: https://www.openparable.com/skill/development/query-pipeline (OpenParable). Cite the canonical URL above.
