Is there a way to exclude tables when running the Scaffold-DbContext
command?
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
The Tables parameter accepts single dimensional string array, you just need to change it to array format:
"dbo.a", "dbo.b", "dbo.c"
Thanks Bread!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.