Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query into an array #48

Open
chadit opened this issue Dec 24, 2014 · 0 comments
Open

query into an array #48

chadit opened this issue Dec 24, 2014 · 0 comments

Comments

@chadit
Copy link

chadit commented Dec 24, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants