ASP.NET MVC2, How to Add Metadata Attributes and Control the order of properties displayed in the View <p>In ASP.NET MVC2, I have two ViewModels with Parent-Child relationship as below.</p> <p>Parent ViewModel:</p> <pre><code>public class PersonViewModel { [Required] public int ID{get;set;} [Required] [StringLength(50)] public string Name{get;set;} } </code></pre> <p>Child ViewModel:</p> <pre><code>public class EmployeeViewModel:PersonViewModel { [Required] [StringLength(50)] public string Title{get;set;} } </code></pre> <p>I have two questions with this setting.</p> <ol> <li><p>How can I add Metadata Attributes to the properties in the parent ViewModel from the child ViewModel?</p></li> <li><p>When displayed in the View using Html.DisplayForModel(), It seems the properties in the parent ViewModel always display after those of the child ViewModel. how can I control the order of properties displayed? </p></li> </ol>