Repository navigation
[8.0] Fix Contains on an object collection over a value-converted column (#3961) - #3972
Merged
Merged
Conversation
…umn (#3961) Backport the fix for #3916 to EF Core 8. Reuse the existing converted-enum array fixture and EF8 object comparer/JSON reader APIs. (cherry picked from commit 4430302) Co-authored-by: Copilot App <[email protected]> Copilot-Session: f702d425-9c3d-4084-8828-c40862e8c3d8
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.
Backports #3961 (4430302) to
hotfix/8.0.12for #3916. The nullable element-converter prerequisite #3965 is already included via #3969.Supports
object[]andList<object>parameters inContainsover value-converted columns, including null collection elements.EF8 adaptations:
ObjectListComparer, which already accepts the typed element comparer; no newer comparer APIs are needed.JsonCastValueReaderWriter<object>.ArrayArrayQueryTestfor the compact array/list theory because EF8's primitive-collection fixture has noWrappedId/NullableWrappedId. Retain all upstream converter unit cases. No standalone context/fixture or dependency changes.Validation with .NET SDK 8.0.425:
Contains.