TrackableEntities / EntityFrameworkCore.Scaffolding.Handlebars

Scaffold EF Core models using Handlebars templates.
MIT License
210 stars 53 forks source link

[Question] Is there a way to skip columns #172

Closed jgill248 closed 3 years ago

jgill248 commented 3 years ago

I have many tables in the database that have audit columns. Is there a way to use IDesignTimeServices to skip those columns on every table during entity generation?

tonysneed commented 3 years ago

This is a situation where you will need to take full control of entity generation by extending HbsCSharpEntityTypeGenerator and overriding GenerateProperties. See here for an example of how to do that.