1 instantiation of StringLengthAttribute
System.Web.DynamicData (1)
DynamicData\ModelProviders\ColumnProvider.cs (1)
66extraAttributes.Add(new StringLengthAttribute(maxLength));
10 references to StringLengthAttribute
System.Web (4)
ModelBinding\DataAnnotationsModelValidatorProvider.cs (2)
50typeof(StringLengthAttribute), 51(metadata, context, attribute) => new StringLengthAttributeAdapter(metadata, context, (StringLengthAttribute)attribute)
ModelBinding\StringLengthAttributeAdapter.cs (2)
4public sealed class StringLengthAttributeAdapter : DataAnnotationsModelValidator<StringLengthAttribute> { 5public StringLengthAttributeAdapter(ModelMetadata metadata, ModelBindingExecutionContext context, StringLengthAttribute attribute)
System.Web.DynamicData (6)
DynamicData\MetaColumn.cs (4)
222var stringLengthAttribute = Metadata.StringLengthAttribute; 529StringLengthAttribute StringLengthAttribute { get; } 556StringLengthAttribute = Attributes.FirstOrDefault<StringLengthAttribute>(); 634public StringLengthAttribute StringLengthAttribute { get; private set; }
DynamicData\ModelProviders\ColumnProvider.cs (2)
63var stringLengthAttribute = attributes.FirstOrDefault<StringLengthAttribute>();