c# - 删除迁移在 VS 2015 中不起作用
问题描述
我创建了一个尚未应用的迁移(例如,我还没有为创建的迁移运行“更新数据库”)。我想使用“Remove-Migration”命令删除这个新的未应用的迁移,但每次我在控制台中键入它时,它都会给我这个错误:
PM> Remove-Migration
Remove-Migration : The term 'Remove-Migration' 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
+ Remove-Migration
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Remove-Migration:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
你能帮我解决这个问题吗?谢谢你。
解决方案
推荐阅读
- rabbitmq - Rebus 可以配置为在 RabbitMQ 中将错误队列类型设置为 quorum 吗?
- android - 如何在 Android 上检测 Brother 打印机的型号?
- reactjs - 是否可以在反应 Web 应用程序中使用没有认知的 aws-amplify
- python - 使用自相关和协方差生成随机资产回报
- r - 根据 Shiny 中的 selectInput 字段显示不同的标记
- python - 如何并行递归进行网站爬网?
- javascript - Puppeteer 在使用自动播放音频实用程序加载页面时冻结
- javascript - 如何在一行/命令中声明具有属性的javascript函数?
- r - 在相关图中添加线
- botkit - 如何更改 Botkit 端口?