You want [Required, StringLength(6, MinimumLength = 6)]. Constructor of StringLength takes in the maximum length only, so as you currently ...
確定! 回上一頁