FastCrud icon indicating copy to clipboard operation
FastCrud copied to clipboard

Dapper.FastCrud.ModelGenerator class access modifier

Open kipusoep opened this issue 8 years ago • 2 comments

It would be great to be able to configure the access modifier of the generated models, so they can be internal instead of public for example.

kipusoep avatar Oct 06 '17 09:10 kipusoep

That can be easily achieved by adding a config property in the config .tt file and using it inside the model generator .tt file. A pull request for this would be really appreciated.

MoonStorm avatar Oct 24 '17 22:10 MoonStorm

Just wondering if we can make the same change for generated properties to add = default!; ? (handling Warning CS8618)

a-priestley avatar Apr 26 '22 18:04 a-priestley

Added customizations for both the class and the property modifiers. Also added a warning pragma for CS8618.

MoonStorm avatar Jun 03 '24 04:06 MoonStorm