C#实体类null自动转空字符串

C#实体类null自动转空字符串

 

using System.ComponentModel.DataAnnotations;

   [DisplayFormat(ConvertEmptyStringToNull = false)]

        public string yptype { set; get; }
posted @ 2019-10-29 13:12  牛腩  阅读(3204)  评论(1)    收藏  举报