c# - Linq - check from list some thing like in used in to query on set in SQL -


 list<guid?> mobileappid = new list<guid?>();  return  d .where(x => x.marketplaceid in mobileappid) .tolist(); 

i want select values d marketplaceid in mobileappid.mobileappid set how in linq c#. select in query in sql server

d class containing marketplaceid

the equivalent contains query:

return  d .where(x => mobileappid.contains(x.marketplaceid)) .tolist(); 

might want make mobileappid hashset speed up.


Comments

Popular posts from this blog

Prolog - Listing -

orchardcms - change base url in local copy in Orchard CMS -

linear regression - Trying to get confidence/prediction intervals with `predict.lm` in R, but I keep getting an error regarding my dichotomous variable -