Entity Framework 5 expects CreatedOn column from MigrationHistory table

前端 未结 5 1339
故里飘歌
故里飘歌 2021-01-03 23:41

I am migrating an MVC 3 application from EF 4.3 to EF 5. I noticed that EF 5 expects a CreatedOn column in the __MigrationHistory table, which does

5条回答
  •  情话喂你
    2021-01-04 00:06

    Here's a workaround I'm using. Personally, I'm OK with pressing the green arrow twice (Start debugging and then Continue), but if you really want it to stop breaking, try this Post Build Event which will remove the MiniProfiler PDB:

    del "$(TargetDir)MiniProfiler.pdb" /q /s
    

    UPDATE: if that's too much work for you, I created a NuGet package:

    PM> Install-Package MiniProfilerContrib.EFMigrationsFix
    

提交回复
热议问题