我试图运行此命令:
Caused by: java.io.FileNotFoundException: Properties file pk/com/herman/common/resources/queue-config.properties not found in classpath
得到这个例外:
Enable-Migrations -ContextType ApplicationDbContext
我正在使用vs 2015社区版。以管理员身份重新启动并运行它无法解决问题。如果我尝试运行此命令以重新安装实体框架:
Enable-Migrations : The term 'Enable-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.
At line:1 char:1
+ Enable-Migrations -ContextType ApplicationDbContext
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Enable-Migrations:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
获取此例外:
Install-Package EntityFramework -IncludePrerelease
请给我任何解决方案。
答案 0 :(得分:0)
其区分大小写的类型
enable-migrations -contexttypename DBCONTEXT
您还可以从
中查看可用选项get-help EntityFramework