Share via


ConventionPrimitivePropertyConfiguration.IsOptional Method

Definition

Configures the property to be optional. The database column used to store this property will be nullable.

public virtual System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration IsOptional ();
abstract member IsOptional : unit -> System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration
override this.IsOptional : unit -> System.Data.Entity.ModelConfiguration.Configuration.ConventionPrimitivePropertyConfiguration
Public Overridable Function IsOptional () As ConventionPrimitivePropertyConfiguration

Returns

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

Remarks

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

Applies to