ConventionPrimitivePropertyConfiguration.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 virtual ConventionPrimitivePropertyConfiguration IsRequired()

Calling this will have no effect once it has been configured.