Summary
Projections invoking non-default constructors with parameters passed into them no longer work as of 2.19.0 with the LINQ3 provider unless the constructor's parameters match the names of the properties being pulled from the database. This used to work on LINQ3 all the way until 2.18.0, so it's a regression.
How to Reproduce
Connect the provided repro to a test Mongo instance and run. It works on 2.18.0 with LINQ3, but not on 2.19.0 with LINQ3.
As a control, it works on LINQ2 on both versions.
- is duplicated by
-
CSHARP-4542 LINQ3 support for projecting to a ValueTuple<>
- Closed
- is related to
-
CSHARP-4550 NewExpression and MemberInitExpression behaviour differs
- Closed