Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cosmos: Make the 'id' property more flexible #21249

Merged
merged 1 commit into from
Jun 15, 2020
Merged

Conversation

AndriySvyryd
Copy link
Member

  • Rename the 'id' property created by convention to '__id' to avoid it clashing with an entity property.
  • Make sure that the property created by the convention is removed if any other property is mapped to 'id' (the new property should get a value generator).
  • Remove the value generator from the property mapped to 'id' if it's part of the PK
  • Validate all properties have distinct database names

Fixes #17751

…clashing with an entity property.

Make sure that the property created by the convention is removed if any other property is mapped to id (the new property should get the value generator).
Validate all properties have distinct database names
Remove the value generator from the property mapped to id if it's part of the PK
Escape | using ^ instead of /

Fixes #17751
Fixes #20665
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cosmos: Make the 'id' property more flexible
2 participants