我想修改一個使用EF 4.1(代碼優先)開發的DB。我升級項目到EF 4.3,並按照此步驟: http://blogs.msdn.com/b/adonet/archive/2012/02/09/ef-4-3-automatic-migrations-walkthrough.aspxEF(Entity Framework)4.3遷移工具不適用於EF 4.1 DB
一切都很順利,但是當我想測試當前的DB(EF 4.1代碼第一次),更新數據庫內提出這個錯誤:
Cannot scaffold the next migration because the target database was created with a version of Code First earlier than EF 4.3 and does not contain the migrations history table. To start using migrations against this database, ensure the current model is compatible with the target database and execute the migrations Update process. (In Visual Studio you can use the Update-Database command from Package Manager Console to execute the migrations Update process).
我想知道如何遷移EF 4.1(Code First)數據庫?此外,數據庫是活的,有數據,我不能丟表。
讀取錯誤消息。按照指示。 – jrummell 2012-03-01 20:36:59
但這是一個遞歸錯誤消息。 – 2012-03-05 00:50:25