我修改了模型中的一個屬性,事實證明它不受SQLite版本的支持。這是錯誤。 {"SQLite does not support this migration operation ('DropColumnOperation'). For more information, see http://go.microsoft.com/fwlink/?LinkId=723262."}
如何使用包管理器控制檯使用實體框架在通用Windows平臺中降級/回滾遷移?
因此,我決定使用命令Update-Database Migration "MyFirstMigration"
將其回滾,但在控制檯上顯示錯誤,其中指出Update-Database shouldn't be used with Universal Windows Platform apps. Instead, call DbContext.Database.Migrate() at runtime.
。推薦的這個代碼已經是在第一次運行應用程序時執行的代碼,它會產生上面的第一個錯誤。
我真的很想進入這裏。有人可以建議我如何回滾/降級MySecondMigration
ti MyFirstMigration
?