Skip to content

Cosmos: Inherit partition key definition from parent by convention #34176

@roji

Description

@roji

When defining an inheritance mapping in Cosmos, the partition key must be explicitly defined for children, and it must be identical to that of the parents. We should just inherit these definitions by convention, like we do for e.g. primary keys.

Probably ensure that we do the same for the container and JSON ID property definition as well...

The partition key properties for entity type 'SharedContainerEntity1' are 'PartitionKey', while the partition key properties for entity type 'SharedContainerEntity2Child' are '', and both entity types are mapped to the container 'SharedContainer'. All entity types mapped to the same container must have compatible partition keys defined.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions