6 references to MinimumLength
System.ComponentModel.DataAnnotations (5)
DataAnnotations\StringLengthAttribute.cs (5)
57
return value == null || (length >= this.
MinimumLength
&& length <= this.MaximumLength);
69
bool useErrorMessageWithMinimum = this.
MinimumLength
!= 0 && !this.CustomErrorMessageSet;
76
return String.Format(CultureInfo.CurrentCulture, errorMessage, name, this.MaximumLength, this.
MinimumLength
);
87
if (this.MaximumLength < this.
MinimumLength
) {
88
throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.RangeAttribute_MinGreaterThanMax, this.MaximumLength, this.
MinimumLength
));
System.Web (1)
ModelBinding\StringLengthAttributeAdapter.cs (1)
10
return GetLocalizedString(errorMessage, Metadata.GetDisplayName(), Attribute.
MinimumLength
, Attribute.MaximumLength);