[CSHARP-2120] Unable to filter nested document with oData Created: 07/Dec/17 Updated: 10/Dec/20 Resolved: 10/Dec/20 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Linq |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | justin teaw | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Case: | (copied to CRM) | ||||||||
| Description |
|
I am using oData and trying to filter the nested document's property. Filtering property on the root level works fine. When I start to filter state, I get an exception "(IIF(( {document} {State}== null), null, Convert( {Address.State})) == True) is not supported." { } |
| Comments |
| Comment by James Kovacs [ 10/Dec/20 ] |
|
This issue is the result of not translating IIF (AKA ternary operator) in the LINQ where clause. It is a duplicate of |