EntityFrameworkCore Automatic Migrations NuGet Package

Enable Automatic Migrations for Entity Framework Core for SQL Databases without manual migration files.




The package support following ways to apply/view-applied migrations:

### Context methods

* Execute(TContext context);
* Execute(TContext context, TMigrationsOptions options);
* ExecuteAsync(TContext context, CancellationToken cancellationToken);
* ExecuteAsync(TContext context, TMigrationsOptions options, CancellationToken cancellationToken);

### Extensions methods

* MigrateToLatestVersion<TContext, TMigrationsOptions>(this TContext context);
* MigrateToLatestVersion<TContext, TMigrationsOptions>(this TContext context, TMigrationsOptions options);
* MigrateToLatestVersionAsync<TContext, TMigrationsOptions>(this TContext context, CancellationToken cancellationToken);
* MigrateToLatestVersionAsync<TContext, TMigrationsOptions>(this TContext context, TMigrationsOptions options, CancellationToken cancellationToken);.




Got any EntityFrameworkCore Automatic Migrations Question?





Info

Version: 10.0.0
Author(s): Ionut Neagos
Last Update: Sunday, January 18, 2026
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/ionutneagos/efcore-automaticmigrations
NuGet Url: https://www.nuget.org/packages/EFCore.AutomaticMigrations


Install
Install-Package EFCore.AutomaticMigrations
dotnet add package EFCore.AutomaticMigrations
paket add EFCore.AutomaticMigrations
EFCore.AutomaticMigrations Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

.3

avg-downloads-per-day

46

days-since-last-release

18