Possible to migrate to MySql or Postgres #831
-
I've add package Pomelo.EntityFrameworkCore.MySql (7.0.0), added the dbContext to the services via option UseMySql(), changed the connection string accordingly. Anyone ever migrated to MySql or Postgres? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I've temprarily uncommented the seeding of the database. Created a new Initial Migration (with the MySql dialect) via |
Beta Was this translation helpful? Give feedback.
I've temprarily uncommented the seeding of the database. Created a new Initial Migration (with the MySql dialect) via
dotnet ef migration add
and
dotnet ef database update
command, which then created all my tables in the MySql database as expected. After done this, I've added the seeding of the db (
Program.cs - await initialiser.SeedAsync();
)