Quantcast
Channel: dbschemareader Discussions Rss Feed
Viewing all articles
Browse latest Browse all 166

New Post: Adding Data Annotation to Class

$
0
0
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?

Viewing all articles
Browse latest Browse all 166

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>