DerivedTypeDiscoveryConvention 类

定义

注意

现已弃用此 API。

一种约定,用于根据关联的 CLR 类型层次结构查找已属于模型的派生实体类型。

public class DerivedTypeDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.InheritanceDiscoveryConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention
[System.Obsolete]
public class DerivedTypeDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.InheritanceDiscoveryConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention
type DerivedTypeDiscoveryConvention = class
    inherit InheritanceDiscoveryConventionBase
    interface IEntityTypeAddedConvention
    interface IConvention
[<System.Obsolete>]
type DerivedTypeDiscoveryConvention = class
    inherit InheritanceDiscoveryConventionBase
    interface IEntityTypeAddedConvention
    interface IConvention
Public Class DerivedTypeDiscoveryConvention
Inherits InheritanceDiscoveryConventionBase
Implements IEntityTypeAddedConvention
继承
DerivedTypeDiscoveryConvention
属性
实现

注解

有关详细信息 ,请参阅模型生成约定

构造函数

DerivedTypeDiscoveryConvention(ProviderConventionSetBuilderDependencies)
已过时.

创建 DerivedTypeDiscoveryConvention 的新实例。

属性

Dependencies
已过时.

此服务的依赖项。

(继承自 InheritanceDiscoveryConventionBase)

方法

FindClosestBaseType(IConventionEntityType)
已过时.

在模型中查找一个实体类型,该实体类型与给定实体类型的关联 CLR 类型派生自且是 CLR 层次结构中最近的 CLR 类型。

(继承自 InheritanceDiscoveryConventionBase)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)
已过时.

在实体类型添加到模型后调用。

适用于