EFCore.AutomaticMigrations
1.0.1
See the version list below for details.
dotnet add package EFCore.AutomaticMigrations --version 1.0.1
NuGet\Install-Package EFCore.AutomaticMigrations -Version 1.0.1
<PackageReference Include="EFCore.AutomaticMigrations" Version="1.0.1" />
paket add EFCore.AutomaticMigrations --version 1.0.1
#r "nuget: EFCore.AutomaticMigrations, 1.0.1"
// Install EFCore.AutomaticMigrations as a Cake Addin #addin nuget:?package=EFCore.AutomaticMigrations&version=1.0.1 // Install EFCore.AutomaticMigrations as a Cake Tool #tool nuget:?package=EFCore.AutomaticMigrations&version=1.0.1
If the model changes a lot and you are in a position to manage a medium/large team, manual migrations can lead to more problems than solutions at least in the development phase. I created this package for automatic migrations to help you navigate this easier, while allowing you to focus on development.
You can call directly in Program class, like bellow:
public static void Main(string[] args)
{
var host = CreateWebHostBuilder(args);
using (var scope = host.Services.CreateScope())
{
var services = scope.ServiceProvider;
var loggerFactory = services.GetRequiredService<ILoggerFactory>();
var logger = loggerFactory.CreateLogger<Program>();
try
{
var environment = services.GetRequiredService<IWebHostEnvironment>();
if (environment.IsDevelopment())
{
var context = services.GetRequiredService<ApplicationContext>();
MigrateDatabaseToLatestVersion.ExecuteAsync(context).Wait();
}
}
catch (Exception ex)
{
logger.LogError(ex, "An error occurred creating/updating the DB.");
}
}
host.Run();
}
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 is compatible. netcoreapp3.1 was computed. |
-
.NETCoreApp 3.0
- Microsoft.CodeAnalysis.CSharp (>= 3.5.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 3.1.3)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on EFCore.AutomaticMigrations:
Package | Downloads |
---|---|
Dao.LightFramework
Package Description |
|
TCDev.APIGenerator.Data.SQL
Adds necessary functionality to use MS SQL Server and Azure SQL Instances with the API Generator. |
|
TCDev.APIGenerator.Data.SQLite
Adds necessary functionality to use SQLLite with the API Generator. Rasepi greates fully working CRUD Apis from just models |
|
TCDev.APIGenerator.Data.Postgres
Adds necessary functionality to use Postgres databases with the API Generator. Rasepi greates fully working CRUD Apis from just models |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on EFCore.AutomaticMigrations:
Repository | Stars |
---|---|
DeeJayTC/net-dynamic-api
A library that turns your model into a fully working API, define your model as markdown (soon), json or c#.
|
Version | Downloads | Last updated |
---|---|---|
8.0.5 | 4,553 | 5/19/2024 |
8.0.0 | 5,518 | 11/15/2023 |
7.0.11 | 864 | 10/2/2023 |
7.0.10 | 2,091 | 8/20/2023 |
7.0.7 | 1,074 | 6/14/2023 |
7.0.5.2 | 1,817 | 4/28/2023 |
7.0.5.1 | 534 | 4/27/2023 |
7.0.5 | 684 | 4/12/2023 |
7.0.4 | 917 | 3/27/2023 |
7.0.3 | 588 | 3/27/2023 |
7.0.2 | 594 | 3/27/2023 |
7.0.1 | 987 | 3/27/2023 |
7.0.0 | 4,064 | 12/4/2022 |
6.0.10.1 | 8,050 | 10/20/2022 |
6.0.10 | 1,205 | 10/12/2022 |
6.0.10-rc | 509 | 10/12/2022 |
6.0.9.1 | 757 | 10/12/2022 |
6.0.8 | 745 | 10/12/2022 |
6.0.7 | 725 | 10/12/2022 |
6.0.6 | 795 | 10/12/2022 |
6.0.5 | 732 | 10/12/2022 |
6.0.4 | 4,783 | 4/15/2022 |
6.0.3.1 | 2,308 | 3/22/2022 |
6.0.3 | 1,608 | 3/22/2022 |
6.0.0.1 | 1,098 | 12/6/2021 |
6.0.0 | 774 | 12/6/2021 |
5.0.0 | 1,847 | 11/26/2020 |
1.0.2 | 1,056 | 11/26/2020 |
1.0.1 | 2,975 | 5/11/2020 |
1.0.0 | 942 | 4/22/2020 |
Update code for performance