Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RIA Services OData "Query options are not allowed."

I have a OData endpoint which was created automatically by RIA which seems to work with simple 'get' queries.

E.g.

http://xxx/Service/BusinessApplication1-Web-DomainService1.svc/odata/ProductSet

But when I try to use queries such as 'where' or 'top', e.g:

.../BusinessApplication1-Web-DomainService1.svc/odata/ProductSet?$top=50

results in 'Query options are not allowed.'

I set up a WCF Data Service that has a OData endpoint which works fine and allows queries, so why does the RIA generated one not work?

Thanks!

like image 928
Riddle Avatar asked Aug 19 '10 14:08

Riddle


1 Answers

The OData endpoint exposed by a RIA service doesn't currently support query operators. There's no real workaround for that either (as far as I know).

like image 119
Vitek Karas MSFT Avatar answered Oct 09 '22 13:10

Vitek Karas MSFT