EF实体类指定部分属性不映射成数据库字段特性

  添加NotMapped 特性

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

 

posted @ 2019-10-21 17:18  低调码农哥!  阅读(1547)  评论(0编辑  收藏  举报