Tôi muốn sửa đổi một DB được phát triển với EF 4.1 (Mã Đầu tiên). Tôi nâng cấp dự án vào EF 4.3 và làm theo bước này: http://blogs.msdn.com/b/adonet/archive/2012/02/09/ef-4-3-automatic-migrations-walkthrough.aspxEF (Entity Framework) 4.3 Công cụ di chuyển không hoạt động trên EF 4.1 DB
Mọi thứ đều tiến triển tốt, nhưng khi tôi muốn thử nghiệm trên hiện tại DB (EF 4.1 Mã đầu tiên), Update-Cơ sở dữ liệu nâng lỗi này:
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).
Tôi đã tự hỏi làm thế nào tôi có thể di chuyển một EF 4.1 (Mã đầu tiên) DB? Hơn nữa DB còn sống và có dữ liệu và tôi không thể thả bảng.
thông báo lỗi đọc. Làm theo hướng dẫn. – jrummell
Nhưng đó là một thông báo lỗi đệ quy. –