二、解決方法:使用StringLength替代MaxLength。 複製程式碼程式碼如下:public class SomeClass { [StringLength(16, ErrorMessage = “最大長度16”)]
確定! 回上一頁