title: Why MVC does autoupdate of EF Model Classes?
body: <p>I generated Entity Model from my database in my MVC5 App.</p>
  
  <p>When I try to add <code>[DispalyName]</code> to some properties it works fine, but after some time app refreshes this class by itself and removes all my custom code</p>
  
  <pre><code>public partial class Patient
      {
          public Patient()
          {
              this.PatientDetails = new HashSet&lt;PatientDetail&gt;();
          }
  
          public int PatientID { get; set; }
          [DisplayName("Last Name")]
          public string LastName { get; set; }
          public string FirstName { get; set; }
  
          public virtual ICollection&lt;PatientDetail&gt; PatientDetails { get; set; }
      }
  </code></pre>
  
  <p>Why MVC does it and how to disable that?</p>