EFContinuousMigrations 5.0.8
See the version list below for details.
dotnet add package EFContinuousMigrations --version 5.0.8
NuGet\Install-Package EFContinuousMigrations -Version 5.0.8
<PackageReference Include="EFContinuousMigrations" Version="5.0.8" />
paket add EFContinuousMigrations --version 5.0.8
#r "nuget: EFContinuousMigrations, 5.0.8"
// Install EFContinuousMigrations as a Cake Addin #addin nuget:?package=EFContinuousMigrations&version=5.0.8 // Install EFContinuousMigrations as a Cake Tool #tool nuget:?package=EFContinuousMigrations&version=5.0.8
Entity Framework Continuous Migrations
What is EF Continuous Migrations?
Entity Framework Continuous Migrations is an EF Core extension for conditionally applying pending migrations to a database at runtime using application configuration settings.
Why would I use it?
You want to ensure the latest EF migrations have been applied during application startup. An example of this would be during an ASP.NET Core application at startup for a given development environment.
How do I use it?
EF Continuous Migrations is added to an application using the AddContinuousMigrations<T>
IServicesCollection
extension method.
The following example shows how this is done for an ASP.NET Core application in the Startup.ConfigureServices
method for an application using a MySql database.
services
.AddDbContext<ApplicationDbContext>(options =>
options
.UseMySql(Configuration.GetConnectionString("DefaultConnection"))
)
.AddContinuousMigrations<ApplicationDbContext>()
.AddControllersWithViews();
EF Continuous Migrations is enabled by default and requires no configuration settings. In order to disable migrations from being applied add the following configuration to a your appsettings.{environment}.json
file:
"ContinuousMigrations": {
"Enabled": false
}
A working example can be seen in the Sample application.
Issue?
If you have any issues please report it here.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Microsoft.EntityFrameworkCore (>= 5.0.8)
- Microsoft.EntityFrameworkCore.Relational (>= 5.0.8)
- Microsoft.Extensions.Configuration (>= 5.0.0)
- Microsoft.Extensions.Configuration.FileExtensions (>= 5.0.0)
- Microsoft.Extensions.Configuration.Json (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.