Answer the question
In order to leave comments, you need to log in
How to display Entity C# validation error?
There is a description of the user class and it describes the validation of its attributes.
For example:
public partial class User
{
[Required]
[EmailAddress(ErrorMessage = "Email был неверно указан.")]
public string Email { get; set; }
[Required]
[RegularExpression(@"\d", ErrorMessage = "Пароль был не верно указан.")]
public string Password { get; set; }
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question