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

Default relationships to ownership for Cosmos #25283

Merged
merged 2 commits into from
Jul 20, 2021
Merged

Default relationships to ownership for Cosmos #25283

merged 2 commits into from
Jul 20, 2021

Conversation

AndriySvyryd
Copy link
Member

Allow to reconfigure STETs as regular entity types
Rerun CosmosDiscriminatorConvention and BaseTypeDiscoveryConvention when ownership changes
Keep OwnedNavigationBuilder.DependentEntityType up-to-day

Fixes #24803

@AndriySvyryd AndriySvyryd requested a review from a team July 17, 2021 21:07
Allow to reconfigure STETs as regular entity types

Fixes #24803
&& targetOwnership.PrincipalEntityType == entityType
&& targetOwnership.PrincipalToDependent?.GetIdentifyingMemberInfo() != navigationMemberInfo)
{
Dependencies.Logger.NonOwnershipInverseNavigationWarning(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this warning have different order for parameters? Right now it throws same as above block but represent inverse side

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good eye, but the order is correct, InversePropertyAttribute_does_not_configure_non_ownership_navigation tests this. It's a bit confusing because the order of parameters in the Logger extension doesn't correspond to the order of parameters in the text itself.

Copy link
Member

@smitpatel smitpatel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

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

Successfully merging this pull request may close these issues.

Azure Cosmos DB provider should default to implicit ownership
2 participants