2
Vote

Support Contains()

description

Using LINQPad v4.47.02 (WCF Data Services 5.5), connecting to the NuGet OData feed ( https://nuget.org/api/v2 ), this fails:

Packages.Where(x => new[] {"GDataDB", "FSharpx.Core"}.Contains(x.Id))

NotSupportedException: the method ‘Contains’ is not supported.

I'm aware that OData v3 supports the Any() operator, but I don't see any reason why the client couldn't implement Contains() by folding ORs for v2 feeds. Here's a workaround I wrote: https://gist.github.com/mausch/6893533

comments