This is an extension library for the migrations used in EF Core. It's a work in progress library, as new and additional extensions will be added at any given time. So feel free to give feedback, request additional support, ...
Supports .NET Core, .NET Standard, .NET Framework
The package:
PM> Install-Package SqlMigrationOperations
The package:
PM> Install-Package SqlMigrationOperations
Call below code inside the Configure
method in Startup.cs or from inside an IServiceCollection extension
services
.AddEntityFrameworkSqlServer()
.AddDbContext<{MyDbContext}>(options =>
{
options.UseSqlServer(connectionString);
options.ReplaceService<IMigrationsSqlGenerator, SqlMigrationOperationsGenerator>();
})
.BuildServiceProvider();
Need support for a different provider (PostgreSQL, ...) ? Feel free to open a new issue
- Adding other provider (PostgreSQL)
- Extending Operations