EF 4.1(コードファースト)で開発された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(コードファースト)DBをどのように移行できますか?さらに、DBはライブであり、データがあり、テーブルを削除することはできません。
読むエラーメッセージを。指示に従ってください。 – jrummell
しかし、これは再帰的なエラーメッセージです。 –