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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With