Language

RelationalForeignKeyExtensions.SetIsExcludedFromMigrations メソッド

定義

オーバーロード

Name 説明
SetIsExcludedFromMigrations(IMutableForeignKey, Nullable<Boolean>)

外部キー制約が移行から除外されるかどうかを示す値を設定します。

SetIsExcludedFromMigrations(IConventionForeignKey, Nullable<Boolean>, Boolean)

外部キー制約が移行から除外されるかどうかを示す値を設定します。

SetIsExcludedFromMigrations(IMutableForeignKey, Nullable<Boolean>)

ソース:
RelationalForeignKeyExtensions.cs

外部キー制約が移行から除外されるかどうかを示す値を設定します。

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

パラメーター

foreignKey
IMutableForeignKey

外部キー。

excluded
Nullable<Boolean>

設定する値。

適用対象

SetIsExcludedFromMigrations(IConventionForeignKey, Nullable<Boolean>, Boolean)

ソース:
RelationalForeignKeyExtensions.cs

外部キー制約が移行から除外されるかどうかを示す値を設定します。

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)

パラメーター

foreignKey
IConventionForeignKey

外部キー。

excluded
Nullable<Boolean>

設定する値。

fromDataAnnotation
Boolean

構成がデータ注釈を使用して指定されたかどうかを示します。

戻り値

構成された値。

適用対象