[CSHARP-4705] ExpressionNotSupportedException with projection expression Created: 03/Jul/23 Updated: 27/Oct/23 Resolved: 01/Sep/23 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 2.20.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Unknown |
| Reporter: | Loris Blanchon | Assignee: | Robert Stam |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Documentation Changes Summary: | 1. What would you like to communicate to the user about this feature? |
||||||||||||||||
| Description |
| Comments |
| Comment by Robert Stam [ 01/Sep/23 ] | ||||||||
|
You are correct that for now the correct workaround is to do the projection client-side. LINQ3 does support a robust set of projections server-side (as long as you are using server 4.4 or newer), but in this particular case you are using a `Dictionary` constructor that LINQ3 doesn't support:
I have created a separate ticket for that feature.
| ||||||||
| Comment by Loris Blanchon [ 04/Jul/23 ] | ||||||||
|
I was able to fix the exception by doing the projection client-side as suggested in
Please let me know if it is the correct fix. | ||||||||
| Comment by PM Bot [ 03/Jul/23 ] | ||||||||
|
Hi loris.blanchon@ubisoft.com, thank you for reporting this issue! The team will look into it and get back to you soon. |