Language

RelationalForeignKeyExtensions.SetIsExcludedFromMigrations Method

Definition

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>)

Source:
RelationalForeignKeyExtensions.cs

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.

excluded
Nullable<Boolean>

The value to set.

Applies to

SetIsExcludedFromMigrations(IConventionForeignKey, Nullable<Boolean>, Boolean)

Source:
RelationalForeignKeyExtensions.cs

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.

excluded
Nullable<Boolean>

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to