EDennis.MigrationsExtensions
1.2.0
See the version list below for details.
dotnet add package EDennis.MigrationsExtensions --version 1.2.0
NuGet\Install-Package EDennis.MigrationsExtensions -Version 1.2.0
<PackageReference Include="EDennis.MigrationsExtensions" Version="1.2.0" />
paket add EDennis.MigrationsExtensions --version 1.2.0
#r "nuget: EDennis.MigrationsExtensions, 1.2.0"
// Install EDennis.MigrationsExtensions as a Cake Addin #addin nuget:?package=EDennis.MigrationsExtensions&version=1.2.0 // Install EDennis.MigrationsExtensions as a Cake Tool #tool nuget:?package=EDennis.MigrationsExtensions&version=1.2.0
This package provides extensions to Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder to support SQL Server Temporal tables and/or TestJson tables.
When you add migrationBuilder.CreateMaintenanceProcedures();
to the beginning of the Initial Migration's Up() method, the migrationBuilder generates a "_maintenance" schema (if needed) and creates a number of stored procedures that are used to maintain temporal tables. History tables are automatically generated for all tables having the appropriate SysStart and SysEnd columns. It is recommended to add migrationBuilder.DropMaintenanceProcedures();
to the end of the Initial Migration's Drop() method.
When you add migrationBuilder.CreateTestJsonTableSupport();
to the Initial Migration's Up() method, the migrationBuilder generates a "_maintenance" schema (if needed), creates a TestJson table, and creates a SaveTestJson stored procedure. It is recommended to add migrationBuilder.DropTestJsonTableSupport();
to the Initial Migration's Drop() method.
A migrationBuilder.DoInserts(path_to_sql_insert_file);
method enables you to add insert statements to the end of any Up() method. Temporal tables are disabled prior to the inserts and re-enabled after the inserts. Also, all sequences are updated after the inserts. It is recommended to place an INSERT file in a folder labeled MigrationsInserts and to prefix the INSERT file with the same timestamp prefix as is generated for the migration to which the INSERT file applies (e.g., for a "20180311204507_Initial.cs" migration file, create a "20180311204507_Insert.sql" file and place it in the MigrationsInserts folder). Importantly, insert files can have update and delete statements, as well.
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 | netcoreapp2.0 is compatible. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.0
- Microsoft.EntityFrameworkCore.SqlServer (>= 2.0.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on EDennis.MigrationsExtensions:
Package | Downloads |
---|---|
EDennis.AspNetCore.Base
Alpha version that still requires (a) updated code comments, (b) updated wiki documentation, and (c) completed sample solution |
|
EDennis.NetStandard.Base
Pre-release of the Library. Documentation to come. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.9.2 | 676 | 8/21/2020 |
3.9.1 | 453 | 8/21/2020 |
3.9.0 | 451 | 6/23/2020 |
3.7.1 | 485 | 6/22/2020 |
3.7.0 | 510 | 5/4/2020 |
3.6.1 | 844 | 1/3/2020 |
3.6.0 | 660 | 12/31/2019 |
3.5.0 | 527 | 10/8/2019 |
3.1.7 | 553 | 9/17/2019 |
3.1.6 | 5,878 | 4/26/2019 |
3.1.5 | 581 | 4/26/2019 |
3.1.4 | 601 | 4/24/2019 |
3.1.3 | 609 | 4/24/2019 |
3.1.2 | 632 | 4/24/2019 |
3.1.1 | 650 | 4/24/2019 |
3.1.0 | 11,960 | 2/24/2019 |
3.0.0 | 605 | 2/24/2019 |
2.0.0 | 619 | 2/23/2019 |
1.9.1 | 673 | 2/20/2019 |
1.9.0 | 636 | 2/19/2019 |
1.8.0 | 1,993 | 12/15/2018 |
1.7.1 | 732 | 11/17/2018 |
1.7.0 | 740 | 11/17/2018 |
1.6.0 | 889 | 10/18/2018 |
1.5.2 | 839 | 8/23/2018 |
1.5.1 | 836 | 8/23/2018 |
1.5.0 | 831 | 8/15/2018 |
1.4.0 | 850 | 8/6/2018 |
1.3.3 | 859 | 7/23/2018 |
1.3.2 | 820 | 7/20/2018 |
1.3.1 | 804 | 7/20/2018 |
1.3.0 | 946 | 6/6/2018 |
1.2.0 | 944 | 6/4/2018 |
1.1.2 | 978 | 3/13/2018 |
1.1.1 | 1,018 | 3/13/2018 |
1.0.0 | 975 | 3/11/2018 |
0.1.2 | 934 | 3/11/2018 |
0.1.1 | 932 | 3/10/2018 |
0.1.0 | 949 | 3/10/2018 |
0.0.2-alpha | 822 | 3/8/2018 |
0.0.1-alpha | 724 | 3/8/2018 |
Added support for TestJson tables. To add, include migrationBuilder.CreateTestJsonTableSupport(). To remove, include migrationBuilder.DropTestJsonTableSupport();