ef-migrations

Automate EF Core migrations for Pandahrms Persistence projects.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/pandaworks-software-plt/pandahrms-skills --skill ef-migrations-pandaworks-software-plt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ef-migrations
Source: https://github.com/pandaworks-software-plt/pandahrms-skills/tree/main/skills/ef-migrations
Command: npx skills add https://github.com/pandaworks-software-plt/pandahrms-skills --skill ef-migrations-pandaworks-software-plt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

EF Core migrations management across Pandahrms backends (Performance and Recruitment APIs) to create, apply, undo, rollback migrations and generate SQL scripts.

Core Features & Use Cases

  • Add, apply, undo, and rollback migrations within the Persistence projects.
  • Generate SQL scripts for production deployments and auditing.
  • Use safe, context-aware commands from inside the Persistence project directory to manage DbContext-specific migrations.

Quick Start

Navigate to the Persistence project directory and run dotnet ef migrations add <MigrationName> --context <DbContextName> to create a new migration.

Frequently Asked Questions about ef-migrations

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

FAQPage Schema
How do I rollback EF Core migrations in a Persistence project?

To rollback EF Core migrations, execute context-aware dotnet ef commands from inside the Persistence project directory, specifying the target DbContext to safely undo and revert applied migration changes.

Can I generate SQL scripts from EF Core migrations for production deployments?

Yes, you can generate SQL scripts from EF Core migrations for production deployments and auditing, automating the creation of database scripts within the Pandahrms Persistence projects.

How do I add a new EF Core migration when working with multiple DbContexts?

To add a new EF Core migration across multiple DbContexts, navigate to the Persistence project directory and run the dotnet ef migrations add command, specifying the target DbContext name parameter.

Does the EF Core migrations workflow require running commands from a specific directory?

Yes, the EF Core migrations workflow enforces running context-specific dotnet ef commands from inside the Persistence project directory to safely manage migration creation, application, and rollback across Pandahrms backends.

What is the best way to manage database migrations across multiple backend APIs?

The best way to manage database migrations across multiple backend APIs is to use an automated EF Core workflow that applies context-aware dotnet ef commands to create, undo, and rollback migrations within individual Persistence projects.