dotnet-entity-framework6

Guides maintenance and migration of EF6 data layers to EF Core or modern .NET.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/zhenpengLai/myuseskill --skill dotnet-entity-framework6-zhenpenglai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dotnet-entity-framework6
Source: https://github.com/zhenpengLai/myuseskill/tree/main/dotnet-entity-framework6
Command: npx skills add https://github.com/zhenpengLai/myuseskill --skill dotnet-entity-framework6-zhenpenglai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Legacy applications built on Entity Framework 6 face hard decisions about whether to keep EF6, upgrade the runtime, or migrate to EF Core, and wrong choices lead to costly regressions in stable data access code. ## Core Features & Use Cases - EF6 Usage Audit: Inventory EDMX models, ObjectContext usage, lazy loading, stored procedure mappings, and spatial types before planning any migration. - Migration Decision Framework: Separate runtime upgrades from ORM upgrades and choose between keeping EF6, running EF6 on modern .NET, or porting to EF Core. - Bounded Migration Slices: Migrate one bounded context at a time with integration tests against the real database provider. - Use Case: A team maintaining a .NET Framework monolith with an EDMX-based data layer uses this Skill to determine that a full EF Core port is too risky, and instead modernizes only the runtime while applying repository and unit of work patterns to stabilize EF6 code. ## Quick Start Audit my EF6 codebase and recommend whether to keep EF6, upgrade the runtime, or migrate to EF Core.

Frequently Asked Questions about dotnet-entity-framework6

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate from EF6 to EF Core?▼

Migrate EF6 to EF Core by first auditing feature usage, then moving one bounded context at a time using parallel coexistence or module-by-module approaches. Validate each slice with integration tests against the real database provider, not InMemory.

Should I keep EF6 or move to EF Core?▼

Keep EF6 when the application is stable, relies on EDMX designer models, complex stored procedure mappings, or ObjectContext APIs. Consider EF Core when targeting .NET 6+, needing cross-platform deployment, or requiring features like compiled queries and interceptors.

Can EF6 run on modern .NET?▼

Yes, EF6 can run on modern .NET, which lets you upgrade the runtime without porting the ORM. This path suits applications where the runtime upgrade is needed but an EF Core migration is too risky.

What EF6 features have no EF Core equivalent?▼

EF6 features without direct EF Core equivalents include the EDMX designer, ObjectContext API, automatic migrations, and Entity SQL. Identify these early in the audit because they significantly raise migration cost.

Why do EF6 queries behave differently after migrating to EF Core?▼

EF Core has different LINQ translation behavior, cascade delete defaults, and shadow property handling than EF6. Write characterization tests before migration and compare generated SQL for critical queries to catch regressions.