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

Consistent fixup from query when reference navigation explicitly set #21045

Merged
merged 1 commit into from
Jun 1, 2020

Conversation

ajcvickers
Copy link
Member

Fixes #18007

Previously it was possible for the existing instance to be replaced when a query brings back a new instance, but only for the first time the new instance is returned. This change prevents the new instance from being used in all cases, which is the agreed behavior here, and also now matches what EF6 does consistently.

@ajcvickers ajcvickers requested a review from a team May 25, 2020 22:24
@smitpatel
Copy link
Contributor

"consistent"

@AndriySvyryd AndriySvyryd changed the title Conasistent fixup from query when reference navigation explicitly set Consistent fixup from query when reference navigation explicitly set May 27, 2020
Fixes #18007

Previously it was possible for the existing instance to be replaced when a query brings back a new instance, but only for the first time the new instance is returned. This change prevents the new instance from being used in all cases, which is the agreed behavior here, and also now matches what EF6 does consistently.
@ajcvickers ajcvickers merged commit 1452d63 into master Jun 1, 2020
@ajcvickers ajcvickers deleted the OneStepCloserToTheEdge0525 branch June 1, 2020 14:27
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.

Initializing reference navigation in constructor causes incorrect fixup
3 participants