RelationalForeignKeyExtensions.SetIsExcludedFromMigrations 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| 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
指示是否使用数据注释指定了配置。
返回
配置的值。