RelationalValueGenerationConvention 클래스

정의

기본 키의 일부이거나 외래 키의 일부가 아니거나 데이터베이스 기본값을 갖도록 구성된 속성에서 로 저장소 값 생성 OnAdd 을 구성하는 규칙입니다. 또한 속성을 계산 열로 구성된 것처럼 OnAddOrUpdate 구성합니다.

public class RelationalValueGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.ValueGenerationConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention
public class RelationalValueGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.ValueGenerationConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention
type RelationalValueGenerationConvention = class
    inherit ValueGenerationConvention
    interface IPropertyAnnotationChangedConvention
    interface IConvention
type RelationalValueGenerationConvention = class
    inherit ValueGenerationConvention
    interface IPropertyAnnotationChangedConvention
    interface IConvention
    interface IEntityTypeAnnotationChangedConvention
Public Class RelationalValueGenerationConvention
Inherits ValueGenerationConvention
Implements IPropertyAnnotationChangedConvention
Public Class RelationalValueGenerationConvention
Inherits ValueGenerationConvention
Implements IEntityTypeAnnotationChangedConvention, IPropertyAnnotationChangedConvention
상속
RelationalValueGenerationConvention
파생
구현

설명

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

생성자

RelationalValueGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

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

속성

Dependencies

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

(다음에서 상속됨 ValueGenerationConvention)
RelationalDependencies

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

메서드

GetValueGenerated(IConventionProperty)

지정된 속성에 대해 설정할 저장소 값 생성 전략을 반환합니다.

GetValueGenerated(IProperty)

지정된 속성에 대해 설정할 저장소 값 생성 전략을 반환합니다.

GetValueGenerated(IProperty, StoreObjectIdentifier)

지정된 속성에 대해 설정할 저장소 값 생성 전략을 반환합니다.

GetValueGenerated(IReadOnlyProperty, StoreObjectIdentifier)

지정된 속성에 대해 설정할 저장소 값 생성 전략을 반환합니다.

MappingStrategyAllowsValueGeneration(IConventionProperty, String)

매핑 전략 및 속성이 규칙에 따라 값 생성을 허용하는지 여부를 확인합니다.

ProcessEntityTypeAnnotationChanged(IConventionEntityTypeBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

엔터티 형식에서 주석이 변경된 후 호출됩니다.

ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)

엔터티 형식의 기본 형식이 변경된 후 호출됩니다.

(다음에서 상속됨 ValueGenerationConvention)
ProcessEntityTypePrimaryKeyChanged(IConventionEntityTypeBuilder, IConventionKey, IConventionKey, IConventionContext<IConventionKey>)

엔터티 형식의 기본 키가 변경된 후 호출됩니다.

(다음에서 상속됨 ValueGenerationConvention)
ProcessForeignKeyAdded(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>)

외래 키가 엔터티 형식에 추가된 후 호출됩니다.

(다음에서 상속됨 ValueGenerationConvention)
ProcessForeignKeyAdded(IConventionRelationshipBuilder, IConventionContext<IConventionRelationshipBuilder>)

외래 키가 엔터티 형식에 추가된 후 호출됩니다.

(다음에서 상속됨 ValueGenerationConvention)
ProcessForeignKeyOwnershipChanged(IConventionForeignKeyBuilder, IConventionContext<Nullable<Boolean>>)

외래 키의 소유권 값이 변경된 후 호출됩니다.

(다음에서 상속됨 ValueGenerationConvention)
ProcessForeignKeyPropertiesChanged(IConventionForeignKeyBuilder, IReadOnlyList<IConventionProperty>, IConventionKey, IConventionContext<IReadOnlyList<IConventionProperty>>)

외래 키 속성 또는 보안 주체 키가 변경된 후 호출됩니다.

(다음에서 상속됨 ValueGenerationConvention)
ProcessForeignKeyPropertiesChanged(IConventionRelationshipBuilder, IReadOnlyList<IConventionProperty>, IConventionKey, IConventionContext<IConventionRelationshipBuilder>)

외래 키 속성 또는 보안 주체 키가 변경된 후 호출됩니다.

(다음에서 상속됨 ValueGenerationConvention)
ProcessForeignKeyRemoved(IConventionEntityTypeBuilder, IConventionForeignKey, IConventionContext<IConventionForeignKey>)

외래 키가 제거된 후 호출됩니다.

(다음에서 상속됨 ValueGenerationConvention)
ProcessPropertyAnnotationChanged(IConventionPropertyBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

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

적용 대상