0

EF 5 is used in MVC training application and ADO.Datamodel is created with two tables (Employee, Department).

enter image description here

Where to maintain Data annotation attributes like Required etc. I tried the below data annotation in auto generated department.cs, is working fine but after Update Model from database these annotation is gone. how to keep separate?

enter image description here

Thanks your suggestion.

0 Answers0