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.
[EmailAddress] 属性を持つビュー モデルの電子メール アドレス フィールドに [MaxLength(value)] を使用していました。そして、値+1文字のパス検証プロセスを含む電子メールが見つかりました。
この目的のために StringLength 属性を試してください。
[StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)] public string Email{ get; set; }