title: How to change [DisplayName] of EF generated class properties?
body: <p>We know EF generates classes based on Tables we added to <code>.edmx</code> file. Which will not any [DisplayName] DataAnnotations for them. </p>
  
  <p>How can I add this [DisplayName] of generated classes without modifying them? because generated classes can be overridden If I modify <code>.edmx</code> file (re add the modified table) if database changes. So I don't want modify generate class itself.</p>
  
  <h2>EF Generated Class</h2>
  
  <pre><code> public partial class Committee
      {
          public string Committee_Description { get; set; }
          public byte[] Committee_Id { get; set; }
          public string Rn_Descriptor { get; set; }
          public Nullable&lt;System.DateTime&gt; Rn_Create_Date { get; set; }
         ......
         .....
  </code></pre>
  
  <h2>View</h2>
  
  <pre><code> &lt;tr&gt;
              &lt;th&gt;
                  @Html.DisplayNameFor(model =&gt; model.Item2.GetEnumerator().Current.Committee_Name)
              &lt;/th&gt;
  </code></pre>