语言

InvertibleRelationshipBuilderBase 类

定义

用于配置不可逆关系的基类。

[System.Runtime.CompilerServices.Nullable(0)]
public abstract class InvertibleRelationshipBuilderBase : Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder>
public abstract class InvertibleRelationshipBuilderBase : Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder>
public abstract class InvertibleRelationshipBuilderBase : Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionForeignKeyBuilder>
[<System.Runtime.CompilerServices.Nullable(0)>]
type InvertibleRelationshipBuilderBase = class
    interface IInfrastructure<IConventionForeignKeyBuilder>
type InvertibleRelationshipBuilderBase = class
    interface IInfrastructure<InternalRelationshipBuilder>
type InvertibleRelationshipBuilderBase = class
    interface IInfrastructure<IConventionForeignKeyBuilder>
Public MustInherit Class InvertibleRelationshipBuilderBase
Implements IInfrastructure(Of IConventionForeignKeyBuilder)
Public MustInherit Class InvertibleRelationshipBuilderBase
Implements IInfrastructure(Of InternalRelationshipBuilder)
继承
InvertibleRelationshipBuilderBase
派生
特性
实现
IInfrastructure<IConventionForeignKeyBuilder> IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Internal.InternalRelationshipBuilder>

注解

有关详细信息和示例,请参阅 建模实体类型和关系 。

构造函数

名称 说明
InvertibleRelationshipBuilderBase(IMutableEntityType, IMutableEntityType, IMutableForeignKey)

这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。

InvertibleRelationshipBuilderBase(InternalForeignKeyBuilder, InvertibleRelationshipBuilderBase, Boolean, Boolean, Boolean, Boolean)

这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。

InvertibleRelationshipBuilderBase(InternalRelationshipBuilder, InvertibleRelationshipBuilderBase, Boolean, Boolean, Boolean, Boolean)

这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。

属性

名称 说明
Builder

这是一个内部 API,支持Entity Framework Core基础结构,不受与公共 API 相同的兼容性标准的约束。 可以在任何版本中更改或删除它,而不通知。 只需在代码中直接使用它,并非常谨慎地知道这样做可能会导致应用程序在更新到新的Entity Framework Core版本时失败。

DeclaringEntityType

获取用于配置此关系的第一个实体类型。

Metadata

表示此关系的外键。

RelatedEntityType

获取用于配置此关系的第二个实体类型。

显式接口实现

名称 说明
IInfrastructure<IConventionForeignKeyBuilder>.Instance

获取隐藏的属性的值。

IInfrastructure<InternalRelationshipBuilder>.Instance

获取用于配置此关系的内部生成器。

扩展方法

名称 说明
GetInfrastructure<T>(IInfrastructure<T>)

从正在使用的隐藏 IInfrastructure<T>属性中获取值。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

适用于