語言

RelationalForeignKeyExtensions.SetIsExcludedFromMigrations 方法

定義

多載

名稱 Description
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

表示配置是否以資料註解方式指定。

傳回

設定值。

適用於