Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
因为我没有使用 .net 4,所以我不能使用 StringLength.MinimumLength 属性。什么是替代品?我想我应该写正则表达式:
[Required] [RegularExpression("", ErrorMessage = "Minimum 3 characters")] public string Password { get; set; }
谢谢, 伊莱
http://www.tsjensen.com/blog/CommentView,guid,904052d4-8ee0-47b5-bacb-eb1788137233.aspx