LinqToQuerystring
LinqToQuerystring copied to clipboard
query into an array
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.