What problem does it solve?
This Skill helps you implement reliable, high-performance Entity Framework Core data access patterns so your queries, migrations, and bulk operations stay maintainable and efficient.
Core Features & Use Cases
- DbContext configuration: Organize entity mapping with IEntityTypeConfiguration and ApplyConfigurationsFromAssembly for clean, discoverable models.
- Safe query design: Use projections (Select into DTOs) to avoid over-fetching and reduce N+1 query problems, with guidance for pagination and query shaping.
- Production-ready persistence operations: Apply migrations as code, use bulk ExecuteUpdateAsync/ExecuteDeleteAsync for performance, add SaveChangesInterceptor for cross-cutting concerns, and leverage compiled queries and value converters.
- Common anti-pattern avoidance: Prevent lazy loading pitfalls, in-memory filtering mistakes, and fire-and-forget async bugs.
Quick Start
Use the ef-core skill to design a DbContext and write projection-based LINQ queries with EF Core and an explicit migrations workflow for a .NET 10 application.