migrating-ef-dbcontext Skill
Migrates Entity Framework DbContext registration from Global.asax/Startup to ASP.NET Core dependency injection in Program.cs. Handles both EF6 (classic Entity Framework) and EF Core patterns including connection string migration, DI registration, and database initializer/seeding migration. Use when upgrading ASP.NET to Published by microsoft in upgrade-agent-plugins.
What is migrating-ef-dbcontext Skill?
Migrates Entity Framework DbContext registration from Global.asax/Startup to ASP.NET Core dependency injection in Program.cs. Handles both EF6 (classic Entity Framework) and EF Core patterns including connection string migration, DI registration, and database initializer/seeding migration. Use when upgrading ASP.NET to Published by microsoft in upgrade-agent-plugins. This profile combines repository metadata with install, compatibility, and usage signals so developers can quickly decide whether it fits their agent workflow before opening the source repository.
Automated repository signals based on public metadata such as recency, license, installation evidence, and adoption. These are not a security audit or endorsement.
Key capabilities
- Includes SKILL.md support
- Reusable instructions support
- Database workflows
- Data analysis
- Research
- Database workflows use cases
- Data analysis use cases
Technical details
- Install or run with Copy skill directory
When to use migrating-ef-dbcontext Skill
- Use it for database workflows.
- Use it for data analysis.
- Use it for research.
Built with
Editorial notes
Source
- Creator: microsoft
- Repository: microsoft/upgrade-agent-plugins
- Skill file: plugins/upgrade-agent/extenders/upgrade-dotnet/upgrade/skills/lazy/data/migrating-ef-dbcontext/SKILL.md
What it does
Migrates Entity Framework DbContext registration from Global.asax/Startup to ASP.NET Core dependency injection in Program.cs. Handles both EF6 (classic Entity Framework) and EF Core patterns including connection string migration, DI registration, and database initializer/seeding migration. Use when upgrading ASP.NET to
Skill instructions
Entity Framework DbContext Registration Migration Overview Migrates DbContext initialization from legacy ASP.NET patterns (Global.asax, Startup.cs) to ASP.NET Core DI in Program.cs. The registration pattern differs between EF6 and EF Core — this skill handles both, including the decision point when a project uses both simultaneously. Prerequisites Verify the project uses Entity Framework before proceeding. Search for DbContext subclasses in the codebase and check NuGet references for EntityFramework or Microsoft.EntityFrameworkCore. If neither is found, skip and inform the user. Dual EF Usage Decision When both EntityFramework and Microsoft.EntityFrameworkCore packages are present, pause and ask the user which to use for main database logic. Common scenarios: - EF Core for Identity only: User added EF Core for ASP.NET Core Identity but wants EF6 for business data (saves refactoring effort during initial migration) - Mid-refactoring: User plans to fully switch to EF Core but hasn't remo
Explore related resources
Frequently asked questions
What is migrating-ef-dbcontext?
migrating-ef-dbcontext is a open-source AI agent skill with Copy skill directory. Migrates Entity Framework DbContext registration from Global.asax/Startup to ASP.NET Core dependency injection in Program.cs.
Who is migrating-ef-dbcontext best for?
migrating-ef-dbcontext is best for reusing agent instructions, scripts, and references, database workflows, data analysis workflows, research workflows.
How do I install migrating-ef-dbcontext?
Install or run migrating-ef-dbcontext using Copy skill directory. Check migrating-ef-dbcontext for the latest setup command.
Is migrating-ef-dbcontext actively maintained?
migrating-ef-dbcontext may need a closer maintenance check before production use.
Auto-fetched from GitHub.