Question

I followed Getting started with WCF Web API. Everything works well and it supports some of the operators like

?$filter=Name eq 'Ajay'

?$top=4

But when I try other queries like

$filter=substringof('Ajay', Name)

OR

$filter=length(Name) gt 5

It gives following error

The server encountered an error processing the request. See server logs for more details.

But same queries work well with other ODATA services like Netflix. Does WCF Web API support only a limited set of queries, or I am missing something?

Was it helpful?

Solution

Yes preview 4 only supports a subset of the OData query options. However, there is a new Preview 5 available as of last week and it has additional OData support. I'm not sure if all of the query options are now supported but it is worth checking out.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top