다음을 통해 공유


DatabaseGeneratedAttributeConvention 클래스

정의

가 지정된 경우 OnAdd 또는 가 를 사용하여 DatabaseGeneratedAttribute지정된 경우 IdentityComputedNeverNone 속성을 구성하는 규칙입니다. OnAddOrUpdate

public class DatabaseGeneratedAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedAttribute>
type DatabaseGeneratedAttributeConvention = class
    inherit PropertyAttributeConventionBase<DatabaseGeneratedAttribute>
Public Class DatabaseGeneratedAttributeConvention
Inherits PropertyAttributeConventionBase(Of DatabaseGeneratedAttribute)
상속
DatabaseGeneratedAttributeConvention

설명

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

생성자

DatabaseGeneratedAttributeConvention(ProviderConventionSetBuilderDependencies)

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

속성

Dependencies

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

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

메서드

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

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

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

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

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

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

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

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

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

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

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

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

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

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

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

적용 대상