次の方法で共有


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>)
古い.

エンティティ型がモデルに追加された後に呼び出されます。

適用対象