migrating-ef6-code-first-to-ef-core

Migrate Entity Framework 6 Code-First projects to EF Core.

19|2|Updated May 13, 2026
One-click install
npx skills add https://github.com/microsoft/upgrade-agent-plugins --skill migrating-ef6-code-first-to-ef-core
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: migrating-ef6-code-first-to-ef-core
Source: https://github.com/microsoft/upgrade-agent-plugins/tree/main/plugins/upgrade-agent/extenders/upgrade-dotnet/upgrade/skills/lazy/data/migrating-ef6-code-first-to-ef-core
Command: npx skills add https://github.com/microsoft/upgrade-agent-plugins --skill migrating-ef6-code-first-to-ef-core

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of migrating Entity Framework 6 Code-First projects to EF Core, streamlining the transition and ensuring compatibility with modern .NET applications.

Core Features & Use Cases

  • Project Migration: Converts EF6 Code-First projects to EF Core, maintaining DbContext and Code-First models.
  • API Compatibility: Handles EF6-specific APIs like EntityTypeConfiguration, DbModelBuilder, and Database.SetInitializer.
  • Use Case: Ideal for .NET modernization, where projects need to move from EF6 to EF Core for better performance and features.

Quick Start

Run the 'migrating-ef6-code-first-to-ef-core' skill to begin the migration process for your EF6 Code-First project.

Frequently Asked Questions about migrating-ef6-code-first-to-ef-core

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

FAQPage Schema
How do I migrate an Entity Framework 6 Code-First project to EF Core?▼

To migrate an EF6 Code-First project to EF Core, this Skill provides a step-by-step migration process that converts your existing DbContext and Code-First models while ensuring compatibility with modern .NET applications.

What is the best way to handle EF6-specific APIs like EntityTypeConfiguration during migration?▼

Handling EF6-specific APIs like EntityTypeConfiguration and DbModelBuilder during migration is managed by the Skill, which translates these configurations to maintain compatibility when moving your Code-First models to EF Core.

Can I use this EF6 to EF Core migration process for .NET modernization?▼

Yes, you can use this EF6 to EF Core migration process for .NET modernization to achieve better performance and modern features while maintaining your existing DbContext and Code-First models.

Does the migration process maintain my existing DbContext and Code-First models?▼

The migration process maintains your DbContext and Code-First models by converting the EF6 project structure to EF Core, systematically translating APIs like Database.SetInitializer to ensure compatibility.

What are the limitations when moving from EF6 Code-First to EF Core?▼

Limitations when moving from EF6 Code-First to EF Core involve handling EF6-specific APIs that lack direct EF Core equivalents, requiring careful translation of configurations like DbModelBuilder to ensure functional compatibility.

Why should I migrate my Entity Framework 6 Code-First project to EF Core?▼

Migrating your Entity Framework 6 Code-First project to EF Core streamlines the transition to modern .NET applications, enabling better performance and access to modern features while preserving your existing models.