Say I have the following query OData Linq Query (run against http://odata.netflix.com/v2/Catalog):
Genres.Where(x=>x.Name=="Adventures") .Select(y=> new { Genre = y.Name, Movie = y.Titles.Select(l=> new { l.Name, l.AverageRating }) }) How could I change this query to give me the rows where AverageRating was 3?
(NOTE: The point of this question is to find out how to do a where clause on properties of an expanded sub list of my main level query item. My real query is not even against the Netflix OData feed.)
Genres.Where(x=>x.Name=="Adventures" && x.Titles.Any(t => t.AverageRating == 3))?Anyis not supported in the current version of WCF Data Services. (It is in the next one though).