Entity Framework 4.1 The model backing the context has changed since the database was created, immediately after creating DB

后端 未结 7 2165
孤城傲影
孤城傲影 2020-12-05 23:47

I am working on a project which uses Entity Framework 4.1 for persisting our various objects to the database (code first).

I am testing in Visual Studio with a local

相关标签:
7条回答
  • 2020-12-06 00:19

    This can happen due to reflection ordering differences across different platforms. To verify, you can use the EdmxWriter API to compare the EDMX from both environments. If any of the tables have different column ordering, then this is the issue.

    To workaround, you can change the way your test database gets updated such that it is updated from your test server rather than your local box.

    We are going to fix this issue in the next release.

    0 讨论(0)
提交回复
热议问题