Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC3 - Data Annotations with EF Database First (ObjectContext, DbContext)

How can we use Data Annotations for models if the models are generated with 4.1 ADO.NET DbContext Generator or something else?

like image 794
user202448 Avatar asked May 10 '11 20:05

user202448


1 Answers

You can use a partial metadata class

like image 169
MrLuje Avatar answered Oct 29 '22 08:10

MrLuje



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!