How can we use data annotations for models if the models are generated using 4.1 ADO.NET DbContext Generator or something else?
You can use the partial metadata class