I deployed my .net core app to aws, but cannot figure out how to make initial migration to create tables.
Is there some equivalent to dotnet ef migrations add Initial
dotnet ef database update on aws to create tables when use Code First approach?
My code failing on line:
if (context.Record.Any())
{
return; // DB has been seeded
}
Issue solved by changing MySQL connector from MySql.Data.EntityFrameworkCore to SapientGuardian.EntityFrameworkCore.MySql. All migrations then performed using default commands.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With