1, VS, Package Manager console
2, implementation,enable-migrations
Error:
Migrations has already been enabled in project ' DD '. To overwrite the existing migrations configuration with use The-force parameter.
3, implementation,enable-migrations -force
Error:
The Migrations configuration type ' DD. Configuration ' is not being found in the assembly ' DD '.
Reason:
When executing this command, the program will first go to the local GAC directory assembly to find the configuration file, if the previous deployment of the program does not contain the config, then the above error will occur. Of course, there are other solutions available on the Web, but the methods found do not apply to my situation.
4, delete the GAC directory corresponding to the assembly (or cut into other folders), execute again,enable-migrations -force, found can. :)
vs2013, EF6.0.0.0 using migrations to update the database times wrong