我想,第一次在我的新的MVC 4應用 PM運行>啓用的遷移-EnableAutomaticMigrations術語「啓用的遷移」無法識別碼MVC第一
我在歌廳:
Enable-Migrations : The term 'Enable-Migrations' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Enable-Migrations –EnableAutomaticMigrations
我錯過了什麼?我已安裝e.f 5.
你安裝了實體框架嗎?另外http://stackoverflow.com/q/11202718/1341477和http://stackoverflow.com/q/10411529/1341477和http://nuget.codeplex.com/workitem/2649 –
對不起,只是編輯我的問題,我意思是5不是mvc 5!所以是的在回答你的問題... – Simon
你想要數據庫遷移? –