RelationalModelExtensions.UseNamedDefaultConstraints Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- 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.