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