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

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -