Create EF Migration

Generate Entity Framework Core migration scripts from model changes.

53|27|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/andresharpe/dotbot-v3 --skill create-ef-migration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Create EF Migration
Source: https://github.com/andresharpe/dotbot-v3/tree/main/profiles/dotnet-ef/prompts/skills/create-migration
Command: npx skills add https://github.com/andresharpe/dotbot-v3 --skill create-ef-migration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of creating and managing database schema changes for applications using Entity Framework Core, ensuring database consistency with application models.

Core Features & Use Cases

  • Migration Generation: Automatically creates migration scripts based on changes in your DbContext and entity models.
  • Schema Management: Facilitates adding, updating, and applying database schema changes in a controlled manner.
  • Use Case: When you add a new property to an existing entity or create a new entity, this Skill can generate the necessary migration to update your database schema accordingly.

Quick Start

Use the Create EF Migration skill to generate a new migration for your Entity Framework Core project.

Frequently Asked Questions about Create EF Migration

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

FAQPage Schema
How do I generate Entity Framework Core migrations after changing my models?

To generate Entity Framework Core migrations, the Skill automatically creates migration scripts by comparing changes in your DbContext and entity models. You need EF Core tools installed and configured in your project environment to produce the necessary schema update files.

How do I apply schema updates to my database using EF Core code first migrations?

Applying schema updates using EF Core code first migrations involves using the Skill to manage and execute the generated migration scripts against your target database. This ensures your database schema stays synchronized with your application models in a controlled manner.

When do I need to create a new database migration for my EF Core project?

You need to create a new database migration whenever you add a new entity to your DbContext or modify an existing entity, such as adding a new property. The Skill detects these model changes and generates the necessary migration to update your schema.

Do I need EF Core tools installed to manage database schema changes?

Yes, EF Core tools must be installed and configured within your project environment to manage database schema changes. The Skill relies on these tools to generate migration scripts and apply schema updates based on your code first model modifications.

What is the best way to manage schema consistency between my application models and database?

Managing schema consistency between application models and your database is best handled by generating EF Core migrations. The Skill streamlines this process by automatically creating migration scripts from your DbContext changes, ensuring database consistency with your application models.

Can I update an existing database schema without losing data when modifying EF Core entities?

Updating an existing database schema when modifying EF Core entities is supported by generating controlled migration scripts. The Skill facilitates adding, updating, and applying schema changes in a manner that aligns your database structure with your modified entity models.