gpt4 book ai didi

c# - 如何在 visual studio 2015 中管理 EF 6 迁移?

转载 作者:可可西里 更新时间:2023-11-01 09:11:45 26 4
gpt4 key购买 nike

我用 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com