Migrating Ef6 Code First To Ef Core

Migrates Entity Framework 6 Code-First projects to EF Core. Use when upgrading projects that already use DbContext with Code-First models (no EDMX files) and need to move to EF Core. Triggers for "migrate EF6 to EF Core", "upgrade Entity Framework to EF Core", "convert EF6 Code-First to EF Core", "replace EntityFramework package with EF Core", or "modernize Entity Framework". Also relevant when encountering EF6-specific APIs like EntityTypeConfiguration, DbModelBuilder, Database.SetInitializer, or HasDatabaseGeneratedOption during .NET modernization.

Microsoft Updated 195k repo stars
image

File contents

microsoft/upgrade-agent-plugins commit b003afc1e9 Runs: microsoft/migrating-edmx-to-code-first

Frequently asked questions

npx get-skill add microsoft/migrating-ef6-code-first-to-ef-core