语言

RelationalForeignKeyExtensions.SetIsExcludedFromMigrations 方法

定义

重载

名称 说明
SetIsExcludedFromMigrations(IMutableForeignKey, Nullable<Boolean>)

设置一个值,该值指示是否从迁移中排除外键约束。

SetIsExcludedFromMigrations(IConventionForeignKey, Nullable<Boolean>, Boolean)

设置一个值,该值指示是否从迁移中排除外键约束。

SetIsExcludedFromMigrations(IMutableForeignKey, Nullable<Boolean>)

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

Source:
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

指示是否使用数据注释指定了配置。

返回

配置的值。

适用于