更新时间:2023-11-15 20:33:16
不确定这是否是一个错误,但是 scaffold-dbcontext
命令在启动项目中寻找程序集。
Not sure if this is a bug, but scaffold-dbcontext
command looks for the assembly in startup project.
此问题有两种解决方法
您可以将开关添加到脚手架-DBContext
命令在运行命令时将特定项目设置为启动项目。
这是您需要在命令末尾添加的内容...
You can add a switch to scaffold-DBContext
command to set a particular project as startup project while running the command.
This is what you need to add at the end of command...
-StartupProject MyProject.Data