Can we Scaffold DbContext from selected tables of an existing database

asp.net-core asp.net-mvc asp.net-mvc-scaffolding entity-framework visual-studio-2015

Accepted Answer

ZZZ_tmp
39
3/23/2020 6:25:14 PM

Popular Answer

Force tag will update the existing selected models/files in the output directory.

Scaffold-DbContext "Server=(localdb)\v11.0;Database=MyDB;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -t User, Role -f


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow