Learn Entity Framework Core: https://www.learnentityframeworkcore.com/
Entity Framework Core Tutorial: https://entityframeworkcore.com/
Entity Framework 6 Tutorial: https://entityframework.net/
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)
Dependencies
- Microsoft.CodeAnalysis.CSharp(>= 3.8.0)
- Microsoft.EntityFrameworkCore.SqlServer(>= 5.0.0)
Tags
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);.