EF6 and pre-generated views
问题 I am using EF code first method in my project. Recently I updated EF version of my project to EF 6 using Package Manager Console. All of my entities are inherited from a BaseEntity class as a super class : 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 } .... } And also I don't add the BaseEntity in my DbContext , the program run without any problem, but