What problem does it solve?
EF Core projects often struggle with performance, inconsistent change tracking, and complex migrations. This skill codifies best practices to optimize data access, manage migrations, and guard against common pitfalls.
Core Features & Use Cases
- NoTracking by default to improve read performance; explicit tracking when needed
- Never edit migrations manually; use CLI and automated migration workflows
- Dedicated migration service to run migrations before app startup with retry strategies
- ExecutionStrategy for transient failures with safe retry patterns
- Bulk operations using ExecuteUpdate/ExecuteDelete to avoid loading entities
- Query splitting to avoid cartesian explosion when loading multiple navigations
- Proper DI lifecycle and context usage to prevent tracking conflicts
Quick Start
Configure your DbContext to disable tracking by default, enable query splitting for large navigations, and implement a dedicated migration service with retry strategies.