RelationalForeignKeyExtensions.SetIsExcludedFromMigrations メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| Name | 説明 |
|---|---|
| SetIsExcludedFromMigrations(IMutableForeignKey, Nullable<Boolean>) |
外部キー制約が移行から除外されるかどうかを示す値を設定します。 |
| SetIsExcludedFromMigrations(IConventionForeignKey, Nullable<Boolean>, Boolean) |
外部キー制約が移行から除外されるかどうかを示す値を設定します。 |
SetIsExcludedFromMigrations(IMutableForeignKey, Nullable<Boolean>)
外部キー制約が移行から除外されるかどうかを示す値を設定します。
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
外部キー。
適用対象
SetIsExcludedFromMigrations(IConventionForeignKey, Nullable<Boolean>, Boolean)
外部キー制約が移行から除外されるかどうかを示す値を設定します。
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
外部キー。
- fromDataAnnotation
- Boolean
構成がデータ注釈を使用して指定されたかどうかを示します。
戻り値
構成された値。