validation

[CreditCard]: Validates that the property has a credit card format. Requires jQuery Validation Additional Methods.
[Compare]: Validates that two properties in a model match.
[EmailAddress]: Validates that the property has an email format.
[Phone]: Validates that the property has a telephone number format.
[Range]: Validates that the property value falls within a specified range.
[RegularExpression]: Validates that the property value matches a specified regular expression.
[Required]: Validates that the field is not null. See [Required] attribute for details about this attribute’s behavior.
[StringLength]: Validates that a string property value doesn’t exceed a specified length limit.
[Url]: Validates that the property has a URL format.
[Remote]: Validates input on the client by calling an action method on the server. See [Remote] attribute for details about this attribute’s behavior.

참조 : https://docs.microsoft.com/en-us/aspnet/core/mvc/models/validation?view=aspnetcore-5.0