StringColumnConfiguration.HasMaxLength Method (Nullable<Int32>)
Configures the property to have the specified maximum length.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- value
-
Type:
System.Nullable<Int32>
The maximum length for the property. Setting 'null' will result in a default length being used for the column.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.StringColumnConfigurationThe same StringColumnConfiguration instance so that multiple calls can be chained.