术语“更新数据库”不被识别为cmdlet的名称 [英] The term 'Update-Database' is not recognized as the name of a cmdlet
问题描述
术语更新数据库不被识别为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屋!