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

Discover join type FK properties using the same naming convention as when creating them #26221

Merged
merged 1 commit into from
Oct 1, 2021

Conversation

AndriySvyryd
Copy link
Member

Fixes #26208

Description

When an explicit join entity type is used we don't discover the foreign key properties that would have match the name for the shadow properties we created.

Customer impact

Users would need to add additional configuration for the foreign keys, diluting the value of the new simpler UsingEntity overloads.

How found

Docs writing

Regression

No, this mainly impacts the new UsingEntity overloads

Testing

Test for this scenario added in the PR.

Risk

Low, this mainly impacts the new UsingEntity overloads. It is a breaking change from RC2 if the shadow FKs were left unconfigured, though this shouldn't be common.

@AndriySvyryd AndriySvyryd requested a review from a team September 30, 2021 23:33
@AndriySvyryd
Copy link
Member Author

@Pilchie For approval

@Pilchie
Copy link
Member

Pilchie commented Oct 1, 2021

Approved for EFCore 6.0 GA

@AndriySvyryd AndriySvyryd changed the title [6.0] Discover join type FK properties using the same naming convention as when creating them Discover join type FK properties using the same naming convention as when creating them Oct 1, 2021
@AndriySvyryd AndriySvyryd merged commit 60446f7 into release/6.0 Oct 1, 2021
@AndriySvyryd AndriySvyryd deleted the Issue26208 branch October 1, 2021 03:28
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.

UsingEntity overloads could be more helpful at matching the by-convention configuration
3 participants