Skip to content

Cosmos: warn when attempting to save entity with CLR default key value #34180

@ajcvickers

Description

@ajcvickers

The Cosmos provider does not, except in corner cases, generate key values by convention. However, people coming from a relational background may expect a key to be generated. We should error by default if the entity type still has the CLR default for the key value. This can be switched off, so that the CLR default can be saved as a normal value if this is needed, but it should be rarely used.

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