StoreGenerationConvention 클래스

정의

속성이 기본값과 계산 열로 동시에 구성되지 않도록 하는 규칙입니다.

public class StoreGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention
public class StoreGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention
type StoreGenerationConvention = class
    interface IPropertyAnnotationChangedConvention
    interface IConvention
    interface IModelFinalizedConvention
type StoreGenerationConvention = class
    interface IPropertyAnnotationChangedConvention
    interface IConvention
    interface IModelFinalizingConvention
Public Class StoreGenerationConvention
Implements IModelFinalizedConvention, IPropertyAnnotationChangedConvention
Public Class StoreGenerationConvention
Implements IModelFinalizingConvention, IPropertyAnnotationChangedConvention
상속
StoreGenerationConvention
파생
구현

설명

자세한 내용 과 예제는 모델 빌드 규칙EF Core 값 생성 을 참조하세요.

생성자

StoreGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

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

속성

Dependencies

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

RelationalDependencies

이 서비스에 대한 관계형 공급자별 종속성입니다.

메서드

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

모델이 완료된 후 호출됩니다.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

모델을 완료할 때 호출됩니다.

ProcessPropertyAnnotationChanged(IConventionPropertyBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

속성에서 주석이 변경된 후 호출됩니다.

Validate(IConventionProperty)

이 속성에 대해 충돌하는 저장소 생성 구성이 있는 경우 을 throw합니다.

Validate(IConventionProperty, StoreObjectIdentifier)

이 속성에 대해 충돌하는 저장소 생성 구성이 있는 경우 을 throw합니다.

적용 대상