Skip to content

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
This was referenced Sep 15, 2025
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