Preserving Data Annotations Using a Partial Metadata Class

Watch the first few minutes on us! If you'd like to watch the entire video and hundreds more like it, download code samples, access offline videos and skills assessments, and use the discussion forums, log in or purchase a subscription.


Bob Tabor


If you use the technique we employed in Lesson 9 to utilize our Entity Data Model as the basis for our Views, you will need to take great caution when adorning Model properties with Data Annotations because you’re modifying generated code that could be re-generated in the future, thus losing your changes. This video demonstrates how to create a class as partial so that you no longer have to worry about that.

Table of Contents

{{toc.Position}} {{toc.Text}}

Related Links

  • {{link.LinkText}} (requires a paid subscription)


This course is part of the following series: