我用 EntityFramework -Version 6.1.2
使用 Visual Studio 2013 最新更新启动了一个新的 MVC 项目。我进行了几次迁移并更新了数据库。在此之后,我在另一台计算机上检查了该项目并使用 Visual Studio 2015 CTP 6 打开。
如果我进入包管理器控制台并尝试运行任何迁移命令,它们将无法识别:
add-migrations : The term 'add-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.
如何在 Visual Studio 2015 中使用 Entity Framework 6 管理我的迁移?
最佳答案
您是否尝试过卸载并重新安装 Entity Framework NuGet 包?我遇到了与描述相同的问题,它已解决。
关于c# - 如何在 visual studio 2015 中管理 EF 6 迁移?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28856271/