To run the migrations for Entity Framework version 6, which are really just a bunch of sequential scripts kept in the dbo.__MigrationHistory folder and not rerun if recorded there (sounds like AliaSQL, eh?) go into the NuGet Package Manager Console in Visual Studio 2017. At the "Default project:" dropdown pick the infrastructure project which is probably not your UI project and also right click on your infrastructure project in Solution Explorer and pick "Set as StartUp Project" and finally run this:
EntityFramework\Update-Database -ConfigurationTypeName "MyConfiguration"
No comments:
Post a Comment