当前位置: 移动技术网 > IT编程>开发语言>.net > .net core EFCore CodeFirst 迁移出现【No project was found. Change the current working directory or use the --project option. 】

.net core EFCore CodeFirst 迁移出现【No project was found. Change the current working directory or use the --project option. 】

2019年01月09日  | 移动技术网IT编程  | 我要评论

东南融通 倒闭,BK2702航班,李团

pm> dotnet ef migrations add init
no project was found. change the current working directory or use the --project option.

 解决方法 定位到csproject 文件夹

pm> dotnet ef migrations script --verbose -i --project "e:\web\website\website.mvc"

 问题解决

接下来正常进行codefirst操作:生成migration [name] upate database

pm> add-migration test
pm> update-database

来源:

https://github.com/aspnet/entityframework.docs/issues/737

 

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网