asp.net mvc - Is a View Model the only way to annotate your model if you're using the EF model generated classes? -
if you're not coding poco's , you're forced use model generated entity framework or 1 of extensions, there way annotate model other than:
1) using view model
and
2) annotating model generated ef, should of course ruled out anyway over-written every time model updated or refreshed database?
i not know if understand question, seems need write dataannotatios model autogenerated ef , dataannotations can't lost when update ef. if need see: this post.
Comments
Post a Comment