BaseTypeDiscoveryConvention クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
関連付けられた 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(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>) |
外部キーが削除された後に呼び出されます。 |
適用対象
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Entity Framework
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示