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>)
已淘汰.

在實體類型新增至模型之後呼叫。

適用於