PropertyAttributeConventionBase<TAttribute> 클래스

정의

속성에 적용된 특성에 따라 구성을 수행하는 규칙의 기본 형식입니다.

public abstract class PropertyAttributeConventionBase<TAttribute> : Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyFieldChangedConvention where TAttribute : Attribute
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>
파생
구현

설명

파생 클래스는 복합 속성도 처리하려면 및 IPropertyFieldChangedConvention 를 구현 IPropertyAddedConvention 해야 합니다.

자세한 내용 및 예제는 모델 빌드 규칙을 참조하세요.

생성자

PropertyAttributeConventionBase<TAttribute>(ProviderConventionSetBuilderDependencies)

PropertyAttributeConventionBase<TAttribute>의 새 인스턴스를 만듭니다.

속성

Dependencies

이 서비스에 대한 종속성입니다.

메서드

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>)

속성의 지원 필드가 변경된 후 호출됩니다.

적용 대상