Entity Framework Core
Design, tune, or review EF Core data access with proper modeling, migrations, query translation, performance, and lifetime management for modern .NET applications.
dotnet skills install entity-framework-core
Maintain or migrate EF6-based applications with realistic guidance on what to keep, what to modernize, and when EF Core is or is not the right next step. Use when working in an EF6 codebase or planning a data layer migration.
``csharp // Common EF6-specific patterns to inventory: // - EDMX designer models (check for *.edmx files) // - ObjectContext vs DbContext usage // - Lazy loading with virtual navigation properties // - Database.SqlQuery<T>() for raw SQL // - Stored procedure mappings in model // - Spatial types (DbGeography, DbGeometry) ``
| Path | When to use | |------|-------------| | Keep EF6 on .NET Framework | Legacy app with no runtime pressure | | EF6 on modern .NET | Runtime upgrade needed, ORM migration too risky | | EF6 → EF Core | Clean data layer, no EDMX, minimal stored-procedure mapping |
- use repository + unit of work patterns to isolate data access (see references/patterns.md) - prefer DbContext over ObjectContext for new code - use AsNoTracking() for read-only queries - configure concurrency tokens with [ConcurrencyCheck] or IsRowVersion()
- map EF6 features to EF Core equivalents (see references/migration.md) - migrate one bounded context at a time, not the entire data layer - run integration tests against the real database provider, not InMemory - verify: dotnet ef migrations add succeeds, queries produce equivalent results, lazy loading behavior matches expectations
flowchart LR
A["Audit EF6 usage"] --> B{"EDMX or complex mappings?"}
B -->|Yes| C["High migration cost — consider keeping EF6"]
B -->|No| D["Evaluate EF Core migration"]
D --> E["Migrate one context at a time"]
E --> F["Integration test against real DB"]
C --> G["Modernize runtime only"]
F --> H["Validate query equivalence"]
G --> HDesign, tune, or review EF Core data access with proper modeling, migrations, query translation, performance, and lifetime management for modern .NET applications.
dotnet skills install entity-framework-core
Use ManagedCode.MarkItDown when a .NET application needs deterministic document-to-Markdown conversion for ingestion, indexing, summarization, or content-processing workflows.
dotnet skills install managedcode-markitdown
Use ManagedCode.Storage when a .NET application needs a provider-agnostic storage abstraction with explicit configuration, container selection, upload and download flows, and…
dotnet skills install managedcode-storage
Data-access orchestration agent for EF Core, EF6, migrations, query translation, modeling, and persistence strategy decisions.
Also works: dotnet agents install data
Modernization orchestration agent for upgrades, legacy migrations, compatibility planning, and staged adoption of modern .NET patterns.
Also works: dotnet agents install modernization