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