Query Pipeline

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.

.NET (Microsoft) fdc65de 750 B Updated 4k repo stars

File contents

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

dotnet/efcore/tree/main/.agents/skills/query-pipeline commit fdc65de057

Frequently asked questions

npx skillmds@latest add dotnet/query-pipeline