Follow these steps for generating of DB migrations
Install following NuGet package:
Npgsql.EntityFrameworkCore.PostgreSQL
Npgsql.EntityFrameworkCore.PostgreSQL.Design
In Helpers\StartupHelpers.cs
- find all usage of UseSqlServer
and change to UseNpgsql
.
Don't forget to update your connection string in appsettings.json and (re)generate migrations for new database
Install following NuGet package:
Microsoft.EntityFrameworkCore.Sqlite
Microsoft.EntityFrameworkCore.Sqlite.Design
In Helpers\StartupHelpers.cs
- find all usage of UseSqlServer
and change to UseSqlite
.
Don't forget to update your connection string in appsettings.json and (re)generate migrations for new database
Install the following NuGet package:
Pomelo.EntityFrameworkCore.MySql
Pomelo.EntityFrameworkCore.MySql.Design
In Helpers\StartupHelpers.cs
- find all usage of UseSqlServer
and change to UseMySql
.
Don't forget to update your connection string in appsettings.json and (re)generate migrations for new database