MaxLengthAttributeConvention.Apply Method (ConventionPrimitivePropertyConfiguration, MaxLengthAttribute)
Applies the convention to the attribute with specified configuration.
Assembly: EntityFramework (in EntityFramework.dll)
public override void Apply( ConventionPrimitivePropertyConfiguration configuration, MaxLengthAttribute attribute )
Parameters
- configuration
-
Type:
System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration
The configuration.
- attribute
-
Type:
System.ComponentModel.DataAnnotations.MaxLengthAttribute
The attribute.