EFContinuousMigrations 5.0.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package EFContinuousMigrations --version 5.0.8                
NuGet\Install-Package EFContinuousMigrations -Version 5.0.8                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EFContinuousMigrations" Version="5.0.8" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EFContinuousMigrations --version 5.0.8                
#r "nuget: EFContinuousMigrations, 5.0.8"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.0.4 518 4/24/2022
5.0.9 421 9/5/2021
5.0.8 344 9/5/2021
5.0.7 375 9/5/2021
3.1.18 360 9/5/2021
3.1.17 357 9/5/2021
1.0.0 631 4/12/2020