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 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應