How can we use Data Annotations for models if the models are generated with 4.1 ADO.NET DbContext Generator or something else?
You can use a partial metadata class
2.1m questions
2.1m answers
60 comments
57.0k users