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/9.0] Fix Contains on ImmutableArray #35251

Merged
merged 3 commits into from
Dec 2, 2024

Conversation

cincuranet
Copy link
Contributor

Fixes #35102
Backport of #35247

Description

Because of query pipeline internal changes in EF Core 9 we started to improperly handle value type collections - like ImmutableArray<T> - when pre-processing query's expression tree. Value types require boxing when handled via interfaces (IEnumerable<T> in this case). This boxing conversion/node was missing.

Customer impact

Customers using ImmutableArray<T> (or any collection that's a value type) experience an exception when running their application.

How found

Customer reported on 9.

Regression

Yes, from 8.

Testing

Tests added.

Risk

Low.

@cincuranet cincuranet marked this pull request as ready for review December 2, 2024 15:45
@cincuranet cincuranet requested a review from a team December 2, 2024 15:45
@cincuranet
Copy link
Contributor Author

Approved via email.

@cincuranet cincuranet merged commit 6489581 into dotnet:release/9.0-staging Dec 2, 2024
7 checks passed
@cincuranet cincuranet deleted the backport-35247 branch December 2, 2024 20:37
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.

2 participants