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