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

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

 

using System.ComponentModel.DataAnnotations;

   [DisplayFormat(ConvertEmptyStringToNull = false)]

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