[英]Excluding tables with database first approach
Is there a way to exclude tables when running the Scaffold-DbContext
command? 有没有办法在运行
Scaffold-DbContext
命令时排除表?
I tried something like 我试过类似的东西
Scaffold-DbContext -provider EntityFramework.MicrosoftSqlServer
-connection "xxx" -OutputDirectory Models
-Tables "dbo.a,dbo.b,dbo.c,dbo.d"
but I get Build failed
但我得到
Build failed
The Tables parameter accepts single dimensional string array, you just need to change it to array format: Tables参数接受单维字符串数组,您只需将其更改为数组格式:
"dbo.a", "dbo.b", "dbo.c"
Thanks Bread! 谢谢面包!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.