添加NotMapped 特性 /// <summary> /// 用户名 /// </summary> [NotMapped] public string user_name { get; set; }