CosmosKeyDiscoveryConvention 클래스

정의

이름에 따라 엔터티 형식의 기본 키 속성을 찾고 있는 경우 파티션 키를 추가하는 규칙입니다.

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

설명

자세한 내용 과 예제는 모델 빌드 규칙EF Core를 사용하여 Azure Cosmos DB 액세스를 참조하세요.

생성자

CosmosKeyDiscoveryConvention(ProviderConventionSetBuilderDependencies)

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

속성

Dependencies

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

(다음에서 상속됨 KeyDiscoveryConvention)

메서드

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

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

(다음에서 상속됨 KeyDiscoveryConvention)
ProcessEntityTypeAnnotationChanged(IConventionEntityTypeBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

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

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

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

(다음에서 상속됨 KeyDiscoveryConvention)
ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, String, IConventionContext<String>)

엔터티 형식 멤버가 무시된 후 호출됩니다.

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

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

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

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

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

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

(다음에서 상속됨 KeyDiscoveryConvention)
ProcessForeignKeyOwnershipChanged(IConventionRelationshipBuilder, IConventionContext<IConventionRelationshipBuilder>)

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

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

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

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

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

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

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

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

외래 키의 고유성이 변경된 후 호출됩니다.

(다음에서 상속됨 KeyDiscoveryConvention)
ProcessForeignKeyUniquenessChanged(IConventionRelationshipBuilder, IConventionContext<IConventionRelationshipBuilder>)

외래 키의 고유성이 변경된 후 호출됩니다.

(다음에서 상속됨 KeyDiscoveryConvention)
ProcessKeyProperties(IList<IConventionProperty>, IConventionEntityType)

기본 키에 사용할 속성을 추가하거나 제거합니다.

ProcessKeyRemoved(IConventionEntityTypeBuilder, IConventionKey, IConventionContext<IConventionKey>)

이 API는 Entity Framework Core 인프라를 지원하고 공용 API와 동일한 호환성 표준이 적용되지 않는 내부 API입니다. 릴리스에서 예고 없이 변경되거나 제거될 수 있습니다. 코드에서 직접 사용해야 하며, 이렇게 하면 새 Entity Framework Core 릴리스로 업데이트할 때 애플리케이션 오류가 발생할 수 있다는 것을 알고 있어야 합니다.

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

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

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

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

(다음에서 상속됨 KeyDiscoveryConvention)
ProcessSkipNavigationForeignKeyChanged(IConventionSkipNavigationBuilder, IConventionForeignKey, IConventionForeignKey, IConventionContext<IConventionForeignKey>)

건너뛰기 탐색 역이 변경된 후 호출됩니다.

(다음에서 상속됨 KeyDiscoveryConvention)
TryConfigurePrimaryKey(IConventionEntityTypeBuilder)

기본 키 후보를 검색하고 기본 키를 찾은 경우 구성합니다.

(다음에서 상속됨 KeyDiscoveryConvention)

적용 대상