EF实体类指定部分属性不映射成数据库字段特性 添加NotMapped 特性 /// <summary> /// 用户名 /// </summary> [NotMapped] public string user_name { get; set; }