Description
The EF core query is very simple:
var tenantIds = user.AllGrantTenantIds; //int[];
var result = await _dbContext.Queries.Where(x => tenantIds.Contains(x.TenantId)).ToListAsync();
Before installing dotnet 10 SDK, this works. After installing, an error from EF as below:
An exception was thrown while attempting to evaluate the LINQ query parameter expression 'op_Implicit(value(Nettuno.Web.Controllers.APIs.AlertController+<>c__DisplayClass9_1).tenantIds)'.
---> System.InvalidProgramException: Cannot create boxed ByRef-like values.
Reproduction Steps
Install dotnet 10 SDK. and run script.
Expected behavior
Since the code was not changed, it whould work. And the project is dotnetcore 3.1, it should not be affected.
Actual behavior
Error from EF. seems the implementation for array was changed in 10 SDK.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response