I'm using this command in EF core 5 to scaffold out the tables:
Scaffold-DbContext "Server=;Database=;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -Force -Context -Tables
It will generate POCOs and then create properties in those classes based on the foreign key constraints. But I need to skip generating those properties. Are there any options to skip generating these objects?
You can do that with EF Core Power Tools.
But why?
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.