Install any skill in seconds. Free to start, no credit card required.
Get Started Free →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 FOR: EF6 codebases; runtime versus ORM migration decisions; EDMX, code-first, ObjectContext, and legacy data-access review. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when cha
.claude/skills/managedcode-entity-framework6/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-12 | ✗→✓ | ▲ Improved | 23% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 3% | 0% |
| case-15 | ✗→✓ | ▲ Improved | -8% | 0% |
| case-07 | ✓→✓ | = Same ✓ | -1% | 0% |
| case-08 | ✓→✓ | = Same ✓ | 10% | 0% |
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 |
DbContext over ObjectContext for new codeAsNoTracking() for read-only queries[ConcurrencyCheck] or IsRowVersion()dotnet ef migrations add succeeds, queries produce equivalent results, lazy loading behavior matches expectationsv10.0.11 servicing does not make EF Core a drop-in replacement or change EF6 guidance by itself; move only when the project has a bounded migration slice and database-backed equivalence tests.mermaidflowchart 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 --> H
Other measured skills in the registry, with their headline benchmark lift.