ConventionPrimitivePropertyConfiguration.HasMaxLength Method (Int32)
Configures the property to have the specified maximum length.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- maxLength
-
Type:
System.Int32
The maximum length for the property.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfigurationThe same ConventionPrimitivePropertyConfiguration instance so that multiple calls can be chained.
Calling this will have no effect once it has been configured. This method throws if the property does not have length facets.