2
Vote

Invalid "filter query option cannot be specified after the select query option"

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
.Select(x => new {x.IsLatestVersion})
.Where(x => x.IsLatestVersion)

NotSupportedException: The filter query option cannot be specified after the select query option.

But this logically equivalent expression works fine:

Packages
.Where(x => x.IsLatestVersion)
.Select(x => new {x.IsLatestVersion})

comments