PropertyAttributeConventionBase<TAttribute> クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
プロパティに適用される属性に基づいて構成を実行する規則の基本型。
[System.Runtime.CompilerServices.Nullable(0)]
public abstract class PropertyAttributeConventionBase<TAttribute> : Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyFieldChangedConvention where TAttribute : Attribute
public abstract class PropertyAttributeConventionBase<TAttribute> : Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyFieldChangedConvention where TAttribute : Attribute
[<System.Runtime.CompilerServices.Nullable(0)>]
type PropertyAttributeConventionBase<'Attribute (requires 'Attribute :> Attribute)> = class
interface IPropertyAddedConvention
interface IConvention
interface IPropertyFieldChangedConvention
type PropertyAttributeConventionBase<'Attribute (requires 'Attribute :> Attribute)> = class
interface IPropertyAddedConvention
interface IConvention
interface IPropertyFieldChangedConvention
Public MustInherit Class PropertyAttributeConventionBase(Of TAttribute)
Implements IPropertyAddedConvention, IPropertyFieldChangedConvention
型パラメーター
- TAttribute
検索する属性の種類。
- 継承
-
PropertyAttributeConventionBase<TAttribute>
- 派生
- 属性
- 実装
注釈
派生クラスは、複雑なプロパティも処理するために、 IPropertyAddedConvention と IPropertyFieldChangedConvention を実装する必要があります。
詳細と例については、「 モデル構築規則 」を参照してください。
コンストラクター
| Name | 説明 |
|---|---|
| PropertyAttributeConventionBase<TAttribute>(ProviderConventionSetBuilderDependencies) |
PropertyAttributeConventionBase<TAttribute>の新しいインスタンスを作成します。 |
プロパティ
| Name | 説明 |
|---|---|
| Dependencies |
このサービスの依存関係。 |
メソッド
| Name | 説明 |
|---|---|
| ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>) |
複合プロパティが型に似たオブジェクトに追加された後に呼び出されます。 |
| ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>) |
複合プロパティのバッキング フィールドが変更された後に呼び出されます。 |
| ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext) |
複合プロパティが、関連付けられた CLR プロパティまたはフィールドの属性を持つ型に追加された後に呼び出されます。 |
| ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>) |
プロパティがエンティティ型に追加された後に呼び出されます。 |
| ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext) |
関連付けられた CLR プロパティまたはフィールドの属性を持つエンティティ型にプロパティが追加された後に呼び出されます。 |
| ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>) |
プロパティのバッキング フィールドが変更された後に呼び出されます。 |