RequiredPropertyAttributeConvention クラス

定義

プロパティが適用されている場合に必要に応じてプロパティを構成する RequiredAttribute 規則。

public class RequiredPropertyAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.RequiredAttribute>
public class RequiredPropertyAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.RequiredAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyFieldChangedConvention
type RequiredPropertyAttributeConvention = class
    inherit PropertyAttributeConventionBase<RequiredAttribute>
type RequiredPropertyAttributeConvention = class
    inherit PropertyAttributeConventionBase<RequiredAttribute>
    interface IComplexPropertyAddedConvention
    interface IConvention
    interface IComplexPropertyFieldChangedConvention
Public Class RequiredPropertyAttributeConvention
Inherits PropertyAttributeConventionBase(Of RequiredAttribute)
Public Class RequiredPropertyAttributeConvention
Inherits PropertyAttributeConventionBase(Of RequiredAttribute)
Implements IComplexPropertyAddedConvention, IComplexPropertyFieldChangedConvention
継承
RequiredPropertyAttributeConvention
実装

注釈

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

コンストラクター

名前 説明
RequiredPropertyAttributeConvention(ProviderConventionSetBuilderDependencies)

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

プロパティ

名前 説明
Dependencies

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

(継承元 PropertyAttributeConventionBase<TAttribute>)

メソッド

名前 説明
ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

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

(継承元 PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

複合プロパティのバッキング フィールドが変更された後に呼び出されます。

(継承元 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionComplexPropertyBuilder, RequiredAttribute, MemberInfo, IConventionContext)

プロパティが適用されている場合に必要に応じてプロパティを構成する RequiredAttribute 規則。

ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

複合プロパティが、関連付けられた CLR プロパティまたはフィールドの属性を持つ型に追加された後に呼び出されます。

(継承元 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

プロパティがエンティティ型に追加された後に呼び出されます。

(継承元 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, RequiredAttribute, MemberInfo, IConventionContext)

関連付けられた CLR プロパティまたはフィールドに属性を持つエンティティ型にプロパティが追加された後に呼び出されます。

ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

関連付けられた CLR プロパティまたはフィールドに属性を持つエンティティ型にプロパティが追加された後に呼び出されます。

(継承元 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

プロパティのバッキング フィールドが変更された後に呼び出されます。

(継承元 PropertyAttributeConventionBase<TAttribute>)

適用対象