StringColumnConfiguration.HasMaxLength Method (Nullable<Int32>)

Entity Framework 6.0
 

Configures the property to have the specified maximum length.

Namespace:   System.Data.Entity.ModelConfiguration.Configuration
Assembly:  EntityFramework (in EntityFramework.dll)

public StringColumnConfiguration HasMaxLength(
	Nullable<int> value
)

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.StringColumnConfiguration

The same StringColumnConfiguration instance so that multiple calls can be chained.

Return to top
Show: