Share via


RelationalModelExtensions.UseNamedDefaultConstraints Method

Definition

Overloads

Name Description
UseNamedDefaultConstraints(IConventionModel, Nullable<Boolean>, Boolean)

Sets the value indicating whether named default constraints should be used.

UseNamedDefaultConstraints(IMutableModel, Boolean)

Sets the value indicating whether named default constraints should be used.

UseNamedDefaultConstraints(IConventionModel, Nullable<Boolean>, Boolean)

Source:
RelationalModelExtensions.cs

Sets the value indicating whether named default constraints should be used.

public static bool? UseNamedDefaultConstraints(this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, bool? value, bool fromDataAnnotation = false);
static member UseNamedDefaultConstraints : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * Nullable<bool> * bool -> Nullable<bool>
<Extension()>
Public Function UseNamedDefaultConstraints (model As IConventionModel, value As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Boolean)

Parameters

model
IConventionModel

The model to get the value for.

value
Nullable<Boolean>

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

Applies to

UseNamedDefaultConstraints(IMutableModel, Boolean)

Source:
RelationalModelExtensions.cs

Sets the value indicating whether named default constraints should be used.

public static void UseNamedDefaultConstraints(this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, bool value);
static member UseNamedDefaultConstraints : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * bool -> unit
<Extension()>
Public Sub UseNamedDefaultConstraints (model As IMutableModel, value As Boolean)

Parameters

model
IMutableModel

The model to get the value for.

value
Boolean

The value to set.

Applies to