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

[release/5.0] Don't compare values from different keys for deleted entities #24244

Merged
merged 2 commits into from
Mar 10, 2021

Conversation

AndriySvyryd
Copy link
Member

Fixes #24221

Description

An exception is thrown when comparing key values of different types for deleted entities. This code was added in 5.0.0 to delete the entities in the correct order relative to inserted entities.

Customer Impact

Deleting entities with different key types always throws an exception, and this is a fairly common scenario.
A workaround would be to delete entities one by one, but this isn't possible in all scenarios.

How found

Reported by a customer.

Test coverage

Test coverage for this case has been added in this PR.

Regression?

Yes, from EF Core 3.1.

Risk

Low. This code has good test coverage aside from the above scenario. Also quirked.

@AndriySvyryd AndriySvyryd requested a review from a team February 23, 2021 21:54
@AndriySvyryd AndriySvyryd changed the title [release/5.0] Don't compare values from different keys in for deleted entities [release/5.0] Don't compare values from different keys for deleted entities Feb 24, 2021
@ajcvickers ajcvickers added this to the 5.0.x milestone Feb 24, 2021
@ajcvickers ajcvickers modified the milestones: 5.0.x, 5.0.5 Feb 25, 2021
@wtgodbe wtgodbe merged commit d0f7671 into release/5.0 Mar 10, 2021
@wtgodbe wtgodbe deleted the Issue24221 branch March 10, 2021 17:52
@ajcvickers ajcvickers removed this from the 5.0.5 milestone Mar 11, 2021
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.

4 participants