术语“更新数据库”不被识别为cmdlet的名称 [英] The term 'Update-Database' is not recognized as the name of a cmdlet

查看:368
本文介绍了术语“更新数据库”不被识别为cmdlet的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用EF5 beta1,而之前我可以运行更新数据库。现在我关闭了Visual Studio,我无法让它运行。我收到以下错误:


术语更新数据库不被识别为cmdlet,函数,脚本文件的名称,或可操作的程序。检查名称的拼写,或者如果包含路径,请验证路径是否正确,然后重试。
在行:1 char:16
+ Update-Database<<<< -verbose
+ CategoryInfo:ObjectNotFound:(Update-Database:String)[],CommandNotFoundException
+ FullyQualifiedErrorId:CommandNotFoundException


我已经尝试重新安装EF5b1,而当成功(已安装)时,更新数据库仍然无效。



任何人都可以帮忙?

解决方案

最近我一直遇到这个问题。我发现解决方案是关闭Package Manager Console,关闭Visual Studio然后重新打开它们。重新启动也是大部分时间工作,但并不总是。


I am using EF5 beta1 and while I was able to run the "Update-Database" before. Now that I shut down Visual Studio, I cannot get it to run. I get the following error:

The term 'Update-Database' 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:16 + Update-Database <<<< -verbose + CategoryInfo : ObjectNotFound: (Update-Database:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

I have tried to re-install EF5b1 and while was successful (already installed), the 'Update-Database' still does not work.

Can anyone help???

解决方案

I've been having this problem a number of times lately. I found the solution that worked was to close the Package Manager Console, close Visual Studio and then reopen them. Rebooting also worked most of the time, but not always.

这篇关于术语“更新数据库”不被识别为cmdlet的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆