In CodeGen there is a DataAnnotationWriter, but it's internal and only creates a minimal set of System.ComponentModel.DataAnnotation attributes for validation. It's not extensible for now.
It should be easy to inject a simple interface, or even just a Func, to the CodeWriterSettings, which is called when properties are written, so you could add custom attributes.
Would this be interesting?
It should be easy to inject a simple interface, or even just a Func, to the CodeWriterSettings, which is called when properties are written, so you could add custom attributes.
Would this be interesting?