What problem does it solve?
Provides actionable guidance to avoid common Entity Framework Core pitfalls such as N+1 queries, over-fetching, unsafe migrations, and improper DbContext usage, enabling maintainable and performant data access in .NET 10 projects.
Core Features & Use Cases
- DbContext configuration: patterns for registering contexts, using IEntityTypeConfiguration, and organizing persistence code.
- Query optimization: projection-first queries, compiled queries for hot paths, and guidance to avoid ToListAsync-before-filter anti-patterns.
- Bulk operations & migrations: when to use ExecuteUpdateAsync/ExecuteDeleteAsync, safe migration workflows and production-ready scripts.
- Cross-cutting concerns: interceptors for auditing and soft deletes, global query filters for multi-tenancy, and value converters for strongly-typed IDs.
- Decision guidance & anti-patterns: recommendations on repositories vs. direct DbContext usage, lazy loading pitfalls, and reporting vs. raw SQL trade-offs.
Quick Start
Ask the assistant to review a specific EF Core query or migration in your .NET 10 project and provide optimized code and migration guidance.