title: EF6 and pre-generated views
body: <p>I am using EF code first method in my project. Recently I updated EF version of my project to <code>EF 6</code> using Package Manager Console.</p>
  
  <p>All of my entities are inherited from a <code>BaseEntity</code> class as a super class :</p>
  
  <pre><code>public abstract class BaseEntity
  {
      public virtual int Id { get; set; }
  
  
      States _state;
  
      [NotMapped]
      public States State { get; set;}
  
      public enum States
      {
          Unchanged,
          Added,
          Modified,
          Deleted
      }
      ....  
  }
  </code></pre>
  
  <p>And also I don't add the <code>BaseEntity</code> in my <code>DbContext</code>, the program run without any problem, but since I added pre-generated views to my project using <a href="http://visualstudiogallery.msdn.microsoft.com/18a7db90-6705-4d19-9dd1-0a6c23d0751f?SRC=VSIDE" rel="nofollow">EF6 CodeFirst View Generation T4 Template for C# </a>, when I generate the views there is no problem, but when I run my project, I got following error:</p>
  
  <blockquote>
    <p>The current model no longer matches the model used to pre-generate the mapping views, as indicated by the ViewsForBaseEntitySets786b989cf4a349108a38357765a23070.MappingHashValue property. Pre-generated mapping views must be either regenerated using the current model or removed if mapping views generated at runtime should be used instead. See <a href="http://go.microsoft.com/fwlink/?LinkId=318050" rel="nofollow">http://go.microsoft.com/fwlink/?LinkId=318050</a> for more information on Entity Framework mapping views.</p>
  </blockquote>
  
  <p>Does know anyone where is the problem? Or at least what is the way to find the problem?</p>