So, I\'m trying to return a collection of People whose ID is contained within a locally created collection of ids ( IQueryable)
When I specify \"locally created col
If Ids is a List, array or similar, L2S will translate into a contains.
If Ids is a IQueryable, just turn it into a list before using it in the query. E.g.:
List listOfIDs = IDs.ToList(); var query = from st in dc.SomeTable where listOfIDs.Contains(st.ID) select .....