tags:

views:

27

answers:

1

I'm trying to create a call to odata webservice that would select only distinct values of some property. Is there any good example of how to do this?

+1  A: 

Currently the OData protocol doesn't support the distinct operator, or any other operator which would help with such query (assuming you're looking for disctinct values of a primitive property on some entity). You should be able to workaround this by implementing a service operation on the server which performs such query on the underlying provider which usually has that ability. And then the client can call that service operation instead.

Vitek Karas MSFT
Yeh, since OData protocol doesn't support such simple operation the only workaround seems to be to implement it yourself. Thank you for your answer.
igorti