wcf data services - Filter on Expanded entities in OData -


how apply filtering conditions on expanded entities in odata ?

suppose have master entity home having fields

homeid, stateid, countyid, address 

and sub entities state as

stateid, statename 

and county as

countyid, countyname 

i need home addresses , ids filter condition state name , county name. how should url?

using $expand keyword odata query should like:

/home/?$filter=state/statename eq 'state' , county/countyname eq 'county'&$expand=state,county&$select=homeid, address


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -