I created a Code First class
A database was created in Sql automatically.
I deleted the tables :(
I have migrations enabled:
AutomaticMigrationsEnabled = true;
AutomaticMigrationDataLossAllowed = true;
Database.SetInitializer(new DropCreateDatabaseAlways<SurveyContext>());
Yet upon
update-database -force
Cannot find the object "dbo.CustomerResponses" because it does not exist or you do not have permissions.
Please help.
In system tables there is a table called
__MigrationHistory
...I deleted it.
In Package manager console ran command "update-database" Problem fixed!
More info: