LinqToQuerystring icon indicating copy to clipboard operation
LinqToQuerystring copied to clipboard

query into an array

Open chadit opened this issue 11 years ago • 0 comments

I assume this is more of the question than an issue.

I have an object that looks a little like this Truck{ Driver[] Drivers }

in driver there is an Id field.

if I try and use "$filter=Drivers/any(d: d/Id eq '{0}')" It comes back saying that Driver[] does not have an id field.

if I run this: foreach (var truck in trucks) { var test = truck.Drivers.Any(a => a.Id == "dddd"); }

it works fine. Also if I convert the driver array to a list LinqToQuerystring works fine.

chadit avatar Dec 24 '14 14:12 chadit