[CSHARP-4423] LinqProvider.V3 Odata filter problem with id filter (string/ObjectId) Created: 21/Nov/22 Updated: 28/Oct/23 Resolved: 06/Jul/23 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | LINQ3 |
| Affects Version/s: | 2.18.0 |
| Fix Version/s: | 2.21.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Dimitri Kroo | Assignee: | Oleksandr Poliakov |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | oData support for LINQ3 |
| Quarter: | FY24Q2 |
| Backwards Compatibility: | Fully Compatible |
| Documentation Changes: | Not Needed |
| Documentation Changes Summary: | 1. What would you like to communicate to the user about this feature? |
| Description |
|
Hi, after switching from V2 to V3 we get an exception by filtering with Odata: https://localhost:5001/odata/items?&$filter=id%20eq%20%27000000000000000000000001%27%20 MongoDB.Driver.Linq.ExpressionNotSupportedException: 'Expression not supported: Convert($it.Id, String).' public class Item }
Thanks! |
| Comments |
| Comment by Githook User [ 06/Jul/23 ] |
|
Author: {'name': 'Oleksandr Poliakov', 'email': '31327136+sanych-sun@users.noreply.github.com', 'username': 'sanych-sun'}Message: |
| Comment by Janis Zinn [ 30/Jun/23 ] |
|
Is it possible to fix the issue? It is the only problem with odata forcing us to use LINQ V2. We understand, that the feature is planned FY24Q2, but it would be very nice to get it fixed ealier.
Thanks in advance! |