ef-migrations

Automate EF Core migration creation, application, and management in .NET projects.

4|1|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/FaysilAlshareef/dotnet-ai-kit --skill ef-migrations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ef-migrations
Source: https://github.com/FaysilAlshareef/dotnet-ai-kit/tree/main/skills/data/ef-migrations
Command: npx skills add https://github.com/FaysilAlshareef/dotnet-ai-kit --skill ef-migrations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

EF Core migrations are essential for evolving your database schema in a controlled, repeatable way, but teams often struggle with drift, inconsistent environments, and manual, error-prone update processes.

Core Features & Use Cases

  • Create migrations with dotnet ef migrations add to capture schema changes alongside application code.
  • Apply migrations automatically in development and CI/CD pipelines to keep environments in sync.
  • Seed reference data and manage schema evolution without altering startup logic, ensuring safe deployments.

Quick Start

Create your first EF Core migration with dotnet ef migrations add InitialCreate and apply it to your database in development.

Frequently Asked Questions about ef-migrations

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

FAQPage Schema
How do I automate EF Core database migrations in a CI/CD pipeline?

You can automate EF Core database migrations by applying idempotent scripts within your CI/CD pipeline to keep staging and production environments synchronized without manual updates.

What's the best way to seed reference data during EF Core schema evolution?

The best way to seed reference data during EF Core schema evolution is to manage seeding alongside migrations, ensuring safe deployments without altering your application's startup logic.

How does a design-time factory work with EF Core migrations?

A design-time factory works with EF Core migrations by providing the necessary environment configuration to create and apply schema changes seamlessly across different deployment environments.

Can I generate idempotent EF Core migration scripts for production deployments?

Yes, you can generate idempotent EF Core migration scripts to safely apply database schema changes to production, ensuring controlled and repeatable deployment workflows.

Why do my development and staging databases drift out of sync during EF Core migrations?

Databases drift out of sync during EF Core migrations due to inconsistent update processes, which you can resolve by automatically applying migrations across all environments via CI/CD pipelines.

Do I need dotnet ef tooling to create migrations in a .NET project?

Yes, you need dotnet ef tooling to run commands like migrations add, capturing schema changes alongside your application code for proper database management.