RelationalForeignKeyExtensions.SetIsExcludedFromMigrations 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| 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
表示配置是否以資料註解方式指定。
傳回
設定值。