RelationalForeignKeyExtensions.SetIsExcludedFromMigrations 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 |
|---|---|
| SetIsExcludedFromMigrations(IMutableForeignKey, Nullable<Boolean>) |
Sets a value indicating whether the foreign key constraint is excluded from migrations. |
| SetIsExcludedFromMigrations(IConventionForeignKey, Nullable<Boolean>, Boolean) |
Sets a value indicating whether the foreign key constraint is excluded from migrations. |
SetIsExcludedFromMigrations(IMutableForeignKey, Nullable<Boolean>)
Sets a value indicating whether the foreign key constraint is excluded from migrations.
public static void SetIsExcludedFromMigrations(this Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey foreignKey, bool? excluded);
static member SetIsExcludedFromMigrations : Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey * Nullable<bool> -> unit
<Extension()>
Public Sub SetIsExcludedFromMigrations (foreignKey As IMutableForeignKey, excluded As Nullable(Of Boolean))
Parameters
- foreignKey
- IMutableForeignKey
The foreign key.
Applies to
SetIsExcludedFromMigrations(IConventionForeignKey, Nullable<Boolean>, Boolean)
Sets a value indicating whether the foreign key constraint is excluded from migrations.
public static bool? SetIsExcludedFromMigrations(this Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey foreignKey, bool? excluded, bool fromDataAnnotation = false);
static member SetIsExcludedFromMigrations : Microsoft.EntityFrameworkCore.Metadata.IConventionForeignKey * Nullable<bool> * bool -> Nullable<bool>
<Extension()>
Public Function SetIsExcludedFromMigrations (foreignKey As IConventionForeignKey, excluded As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Boolean)
Parameters
- foreignKey
- IConventionForeignKey
The foreign key.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.