Skip to content

Consistent fixup from query when reference navigation explicitly set #21045

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jun 1, 2020

Conversation

ajcvickers
Copy link
Contributor

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
@ajcvickers ajcvickers force-pushed the OneStepCloserToTheEdge0525 branch from 1ffc1c5 to 1c6e891 Compare May 25, 2020 22:42
@smitpatel
Copy link
Contributor

"consistent"

@ajcvickers ajcvickers force-pushed the OneStepCloserToTheEdge0525 branch from 1c6e891 to f16d6b4 Compare May 26, 2020 16:13
@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 force-pushed the OneStepCloserToTheEdge0525 branch from f16d6b4 to e2352b3 Compare May 31, 2020 23:16
@ajcvickers ajcvickers merged commit 1452d63 into master Jun 1, 2020
@ajcvickers ajcvickers deleted the OneStepCloserToTheEdge0525 branch June 1, 2020 14:27
# for free to join this conversation on GitHub. Already have an account? # 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