PrimitivePropertyConfiguration.IsRequired Method ()

 

Configures the property to be required. The database column used to store this property will be non-nullable.

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

public PrimitivePropertyConfiguration IsRequired()

Return Value

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

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