EF实体属性中有关特性的 信息 信息 [NotMapped] public string shuxing { get; set; } 在实体映射的过程中 ,增加特性NotMapped 可以不和数据库字段进行关联, 这样可以方便后期进行数据赋值 或者使用 ,是比较方便的使用小技巧。