Language

PropertyDiscoveryConvention クラス

定義

CLR 型のスカラー パブリック プロパティに対応するエンティティ型にプロパティを追加する規則。

[System.Runtime.CompilerServices.Nullable(0)]
public class PropertyDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention
public class PropertyDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type PropertyDiscoveryConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IEntityTypeBaseTypeChangedConvention
    interface IComplexPropertyAddedConvention
type PropertyDiscoveryConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IEntityTypeBaseTypeChangedConvention
Public Class PropertyDiscoveryConvention
Implements IComplexPropertyAddedConvention, IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention
Public Class PropertyDiscoveryConvention
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention
継承
PropertyDiscoveryConvention
属性
実装

注釈

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

コンストラクター

Name 説明
PropertyDiscoveryConvention(ProviderConventionSetBuilderDependencies, Boolean)

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

PropertyDiscoveryConvention(ProviderConventionSetBuilderDependencies)

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

プロパティ

Name 説明
Dependencies

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

UseAttributes

規則がメンバーで見つかった属性を使用するかどうかを示す値。

メソッド

Name 説明
DiscoverPrimitiveProperties(IConventionTypeBaseBuilder, IConventionContext)

指定された構造型のプロパティを検出します。

GetMembers(IConventionTypeBase)

プロパティの検出時に考慮する必要がある、指定された型から CLR メンバーを返します。

IsCandidatePrimitiveProperty(MemberInfo, IConventionTypeBase, CoreTypeMapping, Type)

指定されたメンバーがプリミティブ プロパティ候補であるかどうかを示す値を返します。

IsCandidatePrimitiveProperty(MemberInfo, IConventionTypeBase, CoreTypeMapping)

指定されたメンバーがプリミティブ プロパティ候補であるかどうかを示す値を返します。

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

複合プロパティが型に似たオブジェクトに追加された後に呼び出されます。

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

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

ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)

エンティティ型の基本型が変更された後に呼び出されます。

適用対象