A migration bundle is a self-contained executable for applying Entity Framework Core database migrations in production. It runs without the .NET SDK, dotnet-ef CLI, or a SQL management tool installed on the target machine. section 12.4.4
Choose a database-structure deployment approach according to the production environment:
- Generate and execute a SQL script; a database administrator can review or adjust the SQL, but execution requires a management tool such as SSMS. section 12.4.4
- Create and execute a migration bundle from the development machine, avoiding software requirements on the production machine. section 12.4.4
- Run dotnet-ef on the production machine or apply migrations programmatically with dbContext.Database.Migrate() in Program.cs. section 12.4.4
Production database setup
When the board-game tables are missing from the production database, a migration bundle can apply the pending migrations directly. SQL scripts remain practical when SSMS is already installed and review by a database administrator is important. section 12.4.4
