Second attempt to generate script sql script did not work
问题 I am developing an application in ASP.NET MVC 5 and Entity Framework with a code-first approach. Firstly, I had one class in my data context file and everything worked. enable-migrations , add-migration and update-database were working fine but second time, I added more classes and tried to execute these statements: enable-migrations -ContextTypeName IdentityDb -MigrationsDirectory DAL\IdentityMigrations enable-migrations -ContextTypeName SMSContext -MigrationsDirectory DAL\SMSMigrations add