StringPropertyConfiguration.IsOptional Method ()

 

Configures the property to be optional. The database column used to store this property will be nullable. T:System.string properties are optional by default.

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

public StringPropertyConfiguration IsOptional()

Return Value

Type: System.Data.Entity.ModelConfiguration.Configuration.StringPropertyConfiguration

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