【发布时间】:2023-03-28 18:36:02
【问题描述】:
我第一次尝试在我的新 mvc 4 应用程序中运行 PM> Enable-Migrations –EnableAutomaticMigrations
我明白了:
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。
【问题讨论】:
-
抱歉刚刚编辑了我的问题,我的意思是 e.f 5 而不是 mvc 5!!所以回答你的问题是的......
-
要迁移数据库吗?
-
我是的。但是我刚刚删除了我的 e.f 参考并重新读取,它现在正在工作......奇怪!
-
你不同意我的观点吗,@Simon? :))
标签: asp.net-mvc-4 ef-code-first