MaxLengthAttributeConvention 클래스

정의

속성에 적용된 에 따라 최대 길이를 MaxLengthAttribute 구성하는 규칙입니다.

public class MaxLengthAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.MaxLengthAttribute>
public class MaxLengthAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.MaxLengthAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention
type MaxLengthAttributeConvention = class
    inherit PropertyAttributeConventionBase<MaxLengthAttribute>
type MaxLengthAttributeConvention = class
    inherit PropertyAttributeConventionBase<MaxLengthAttribute>
    interface IComplexPropertyAddedConvention
    interface IConvention
Public Class MaxLengthAttributeConvention
Inherits PropertyAttributeConventionBase(Of MaxLengthAttribute)
Public Class MaxLengthAttributeConvention
Inherits PropertyAttributeConventionBase(Of MaxLengthAttribute)
Implements IComplexPropertyAddedConvention
상속
구현

설명

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

생성자

MaxLengthAttributeConvention(ProviderConventionSetBuilderDependencies)

MaxLengthAttributeConvention의 새 인스턴스를 만듭니다.

속성

Dependencies

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

(다음에서 상속됨 PropertyAttributeConventionBase<TAttribute>)

메서드

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

복합 속성이 형식과 유사한 개체에 추가된 후 호출됩니다.

(다음에서 상속됨 PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

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

(다음에서 상속됨 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionComplexPropertyBuilder, MaxLengthAttribute, MemberInfo, IConventionContext)

속성에 적용된 에 따라 최대 길이를 MaxLengthAttribute 구성하는 규칙입니다.

ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

연결된 CLR 속성 또는 필드에 특성이 있는 형식에 복합 속성이 추가된 후 호출됩니다.

(다음에서 상속됨 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

속성이 엔터티 형식에 추가된 후 호출됩니다.

(다음에서 상속됨 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, MaxLengthAttribute, MemberInfo, IConventionContext)

연결된 CLR 속성 또는 필드에 특성을 사용하여 속성이 엔터티 형식에 추가된 후 호출됩니다.

ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

연결된 CLR 속성 또는 필드에 특성을 사용하여 속성이 엔터티 형식에 추가된 후 호출됩니다.

(다음에서 상속됨 PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

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

(다음에서 상속됨 PropertyAttributeConventionBase<TAttribute>)

적용 대상