Skip to content

Store temporary key values in state entry rather than setting them on entity instances #12378

Closed

Description

Similar to the way store-generated values are stored during SaveChanges. This would mean that temporary values would not be stored in or visible in the key property, which would have a few advantages:

The reasons that we didn't do this before were:

  • The key value in the entity may not be the key value that EF is using. This can be confusing.
  • Fixup could be more complex, but I think our indirections for shadow values, store-generated values, etc. are pretty good now, so I am hopeful this won't be a major problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    breaking-changeclosed-fixedThe issue has been fixed and is/will be included in the release indicated by the issue milestone.type-enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions