using System.ComponentModel.DataAnnotations; [DisplayFormat(ConvertEmptyStringToNull = false)] public string yptype { set; get; } 来源:https://www.cnblogs.com/macT/p/11763522.html 标签 实体类 null