❔ Parsing an OData filter string
I have a project that has a mildly complex query requirement. I'm using radzen to build a filter and apply it to a view that acts as my data set. Most everything works fine however when I try to filter by DateTime I get an error
Conversion failed when converting date and/or time from character string.
This is coming from the end resulting query which directly below. Which has the time portion which I don't need/can't use that way.
Which gets me the below expression I pass directly to an entity framework where clause which
Then generates the problematic where clause
OData Query
There is more to the code including a section where I parse the OData query into a OData expression using an EDM which I'm not super familiar with. I left that out for brevity but I can post it if need be.
2 Replies