CosmosValueGenerationConvention 클래스

정의

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

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

설명

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

생성자

CosmosValueGenerationConvention(ProviderConventionSetBuilderDependencies)

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

속성

Dependencies

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

(다음에서 상속됨 ValueGenerationConvention)

메서드

GetValueGenerated(IConventionProperty)

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

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)

적용 대상