I created a Code First class
The database was created in Sql automatically.
I deleted the tables :(
I have migration enabled:
AutomaticMigrationsEnabled = true; AutomaticMigrationDataLossAllowed = true; Database.SetInitializer(new DropCreateDatabaseAlways<SurveyContext>());
Nevertheless
update-database -force Cannot find the object "dbo.CustomerResponses" because it does not exist or you do not have permissions.
Please, help.
entity-framework code-first
Pinch
source share