PropertyDiscoveryConvention クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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 | 説明 |
|---|---|
| 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>) |
エンティティ型の基本型が変更された後に呼び出されます。 |