In my EF Core 2.2 app, I changed DBSet DRoles to DairyRoles in the AppDBContextlike this:
public DBSet<DairyRole> DairyRoles { get; set; }
and then executed
context.Database.EnsureCreated();
Error
System.Data.SqlClient.SqlException (0x80131904): Invalid object name 'DairyRoles'.
I thought context.Database.EnsureCreated(); handles migration. Please help.
User contributions licensed under CC BY-SA 3.0