Repository navigation
[9.0] Fix repeated seed-data updates for list properties - #4030
Merged
Merged
Conversation
Backport #4024 (8fd6510). Reuse the element-wise collection comparer for key comparisons and retype its expressions to the mapped collection CLR type with the EF 9 comparer APIs. Preserve regression coverage for unchanged and modified lists and arrays. Co-authored-by: Copilot App <[email protected]> Copilot-Session: c915897d-780d-411c-9e44-96717dd39e19
Backport source correction cd7d820 from #4024. Build the collection key comparer from the element key comparer and cover matching hashes for independently allocated binary arrays and lists. Co-authored-by: Copilot App <[email protected]> Copilot-Session: c915897d-780d-411c-9e44-96717dd39e19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport #4024, including the structural-key correction (8fd6510 and cd7d820).
Supply an element-wise collection key comparer built from the element key comparer, so unchanged seeded lists no longer generate redundant
UpdateDataoperations while modified seeds remain detectable. Preserve structural hashing for binary array/list keys.EF 9 does not have
ComposeConversion; adapt the existing comparer expressions toValueComparer<TCollection>locally instead. The regression tests are otherwise unchanged from the source PR, and validation uses this branch's VSTest runner.Validation: reproduced the unchanged-list failure and both binary-key hash failures before their fixes; the corrected migration/mapping/converter selection passed (232 passed, 6 existing skips), as did both array/list roundtrip functional tests.
Fixes #3635