-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Conversation
Allow to reconfigure STETs as regular entity types Fixes #24803
&& targetOwnership.PrincipalEntityType == entityType | ||
&& targetOwnership.PrincipalToDependent?.GetIdentifyingMemberInfo() != navigationMemberInfo) | ||
{ | ||
Dependencies.Logger.NonOwnershipInverseNavigationWarning( |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allow to reconfigure STETs as regular entity types
Rerun
CosmosDiscriminatorConvention
andBaseTypeDiscoveryConvention
when ownership changesKeep
OwnedNavigationBuilder.DependentEntityType
up-to-dayFixes #24803