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

Versionnumber in GeneratedCode attribute #796

Closed erwin-faceit closed 1 year ago

erwin-faceit commented 1 year ago

The full version is included in the GeneratedCodeAttribute, which results in updating a lot of files when actually nothing is changed. To me, this pollutes Git history with changes that don't have an impact on the code, but makes finding changes very difficult (especially when one of your projects has over 800 POCO classes :scream:).

I would propose to decorate the Entities class with the full version, but the POCO classes just with the major version.

For the POCOS:

[GeneratedCode("EF.Reverse.POCO.Generator", "3.0.0.0")]

and for the Entities class:

[GeneratedCode("EF.Reverse.POCO.Generator", "3.8.1.0")]
sjh37 commented 1 year ago

How about turning off that attribute with:

Settings.IncludeGeneratorVersionInCode = false;
erwin-faceit commented 1 year ago

Give me the dunce hat, so I can stand in the corner shaming myself…

Thanks for the pointer though 👍