What problem does it solve? EF Core code often ships with hidden performance problems like N+1 queries, client-side evaluation, missing indexes, and incorrect DbContext lifetimes. This Skill guides modeling, migrations, query optimization, and lifetime management so .NET data access behaves correctly under real workloads. ## Core Features & Use Cases - Query Optimization: Apply AsNoTracking, DTO projections, eager loading with split queries, compiled queries, and keyset pagination to eliminate N+1 problems and reduce roundtrips. - Migration & Schema Management: Create reviewable migrations, add indexes and data migrations, and generate idempotent SQL scripts for deployment. - Anti-Pattern Detection: Identify and fix common mistakes such as generic repository wrappers, lazy loading abuse, SaveChanges in loops, and monolithic DbContexts. - Use Case: When a code review reveals a slow endpoint loading orders, use this Skill to replace loop-based queries with a single Include plus AsSplitQuery, add a composite index, and verify the generated SQL. ## Quick Start Review my EF Core DbContext and order queries for N+1 problems and suggest optimized LINQ with proper indexes.