次の方法で共有


BaseTypeDiscoveryConvention クラス

定義

関連付けられた CLR 型階層に基づいて、モデルに既に含まれている基本エンティティ型と派生エンティティ型を検索する規則。

public class BaseTypeDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.InheritanceDiscoveryConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention
public class BaseTypeDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.InheritanceDiscoveryConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyOwnershipChangedConvention
public class BaseTypeDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.InheritanceDiscoveryConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyRemovedConvention
public class BaseTypeDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyRemovedConvention
type BaseTypeDiscoveryConvention = class
    inherit InheritanceDiscoveryConventionBase
    interface IEntityTypeAddedConvention
    interface IConvention
type BaseTypeDiscoveryConvention = class
    inherit InheritanceDiscoveryConventionBase
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IForeignKeyOwnershipChangedConvention
type BaseTypeDiscoveryConvention = class
    inherit InheritanceDiscoveryConventionBase
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IForeignKeyRemovedConvention
type BaseTypeDiscoveryConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IForeignKeyRemovedConvention
Public Class BaseTypeDiscoveryConvention
Inherits InheritanceDiscoveryConventionBase
Implements IEntityTypeAddedConvention
Public Class BaseTypeDiscoveryConvention
Inherits InheritanceDiscoveryConventionBase
Implements IEntityTypeAddedConvention, IForeignKeyOwnershipChangedConvention
Public Class BaseTypeDiscoveryConvention
Inherits InheritanceDiscoveryConventionBase
Implements IEntityTypeAddedConvention, IForeignKeyRemovedConvention
Public Class BaseTypeDiscoveryConvention
Implements IEntityTypeAddedConvention, IForeignKeyRemovedConvention
継承
BaseTypeDiscoveryConvention
継承
BaseTypeDiscoveryConvention
実装

注釈

詳細と例については、「 モデル構築規則 」を参照してください。

コンストラクター

BaseTypeDiscoveryConvention(ProviderConventionSetBuilderDependencies)

BaseTypeDiscoveryConvention の新しいインスタンスを作成します。

プロパティ

Dependencies

このサービスの依存関係。

Dependencies

このサービスの依存関係。

(継承元 InheritanceDiscoveryConventionBase)

メソッド

FindClosestBaseType(IConventionEntityType)

指定されたエンティティ型の関連付けられた CLR 型が派生し、CLR 階層内で最も近いものである CLR 型に関連付けられている、モデル内のエンティティ型を検索します。

(継承元 InheritanceDiscoveryConventionBase)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

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

ProcessForeignKeyOwnershipChanged(IConventionForeignKeyBuilder, IConventionContext<Nullable<Boolean>>)

外部キーの所有権の値が変更された後に呼び出されます。

ProcessForeignKeyRemoved(IConventionEntityTypeBuilder, IConventionForeignKey, IConventionContext<IConventionForeignKey>)

外部キーが削除された後に呼び出されます。

適用対象