1 write to Attribute
System.Web (1)
ModelBinding\DataAnnotationsModelValidator.cs (1)
18
Attribute
= attribute;
10 references to Attribute
System.Web (10)
ModelBinding\DataAnnotationsModelValidator.cs (9)
26
var errorMsg = GetLocalizedString(
Attribute
.ErrorMessage);
28
return errorMsg ??
Attribute
.FormatErrorMessage(Metadata.GetDisplayName());
31
return
Attribute
.FormatErrorMessage(Metadata.GetDisplayName());
48
return
Attribute
is RequiredAttribute;
84
ValidationResult result =
Attribute
.GetValidationResult(Metadata.Model, context);
105
errorMsg = GetLocalizedErrorMessage(
Attribute
.ErrorMessage);
141
return (!string.IsNullOrEmpty(
Attribute
.ErrorMessage) &&
142
string.IsNullOrEmpty(
Attribute
.ErrorMessageResourceName) &&
143
Attribute
.ErrorMessageResourceType == null);
ModelBinding\DataAnnotationsModelValidator`1.cs (1)
10
return (TAttribute)base.
Attribute
;