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
Post a Comment