0

If you're not coding up POCO's and you're forced to use the model generated by Entity Framework or one of the extensions, is there any way to annotate the model other than:

1) Using a view model

and

2) Annotating the model generated by EF, which should of course be ruled out as it will anyway be over-written every time the model is updated or refreshed from the database?

Water Cooler v2
  • 32,724
  • 54
  • 166
  • 336

1 Answers1

1

I do not know if I understand your question, but seems you need write DataAnnotatios to Model autogenerated by EF and the DataAnnotations can't be lost when you update the EF. If it is you need see: this post.

Community
  • 1
  • 1
Jonny Piazzi
  • 3,684
  • 4
  • 34
  • 81