DerivedTypeDiscoveryConvention 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
现已弃用此 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(ProviderConventionSetBuilderDependencies) |
已过时.
创建 DerivedTypeDiscoveryConvention 的新实例。 |
属性
Dependencies |
已过时.
此服务的依赖项。 (继承自 InheritanceDiscoveryConventionBase) |
方法
FindClosestBaseType(IConventionEntityType) |
已过时.
在模型中查找一个实体类型,该实体类型与给定实体类型的关联 CLR 类型派生自且是 CLR 层次结构中最近的 CLR 类型。 (继承自 InheritanceDiscoveryConventionBase) |
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>) |
已过时.
在实体类型添加到模型后调用。 |
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈