Invalid object name 'DAppRoles'

0

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.

entity-framework
ef-core-2.2
asked on Stack Overflow Feb 22, 2019 by John

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0