sjh37 / EntityFramework-Reverse-POCO-Code-First-Generator

EntityFramework Reverse POCO Code First Generator - Beautifully generated code that is fully customisable. This generator creates code as if you reverse engineered a database and lovingly created the code by hand. It is free to academics (you need a .edu or a .ac email address), not free for commercial use. Obtain your licence from
https://www.reversepoco.co.uk/
Other
700 stars 230 forks source link

Entity and Configuration in same <table>.cs file #787

Open mrmyroll2 opened 1 year ago

mrmyroll2 commented 1 year ago

Can we make the table's Configuration file in the same table.cs file of the table. I know we can put it in the same folder by changing the PocoConfigurationFolder value, but I prefer if we can put it in the same table.cs which is better to read the generated table models and configuration.

sjh37 commented 1 year ago

Normally you want to keep them separate because the entities are your domain objects with no entity framework dependency. The configuration can be kept in a separate assembly with the entity framework dependency. This request is more complex because of the separate {{mustache}} template files used to generate the files.