Skip to content

[9.0] Fix repeated seed-data updates for list properties - #4030

Merged
roji merged 2 commits into
hotfix/9.0.5from
roji-seeded-lists-backport-9-0
Oct 18, 2026
Merged

roji merged 2 commits into
hotfix/9.0.5from
roji-seeded-lists-backport-9-0

Conversation

@roji

@roji roji commented Oct 18, 2026

Copy link
Copy Markdown
Member

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 UpdateData operations while modified seeds remain detectable. Preserve structural hashing for binary array/list keys.

EF 9 does not have ComposeConversion; adapt the existing comparer expressions to ValueComparer<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

roji and others added 2 commits October 18, 2026 15:14
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
@roji roji linked an issue Oct 18, 2026 that may be closed by this pull request
@roji
roji merged commit 32edb47 into hotfix/9.0.5 Oct 18, 2026
10 checks passed
@roji
roji deleted the roji-seeded-lists-backport-9-0 branch October 18, 2026 15:58
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.

Repeated UpdateData for List<string> property with HasData and migrations

1 participant