need a simple linq -


i have table called products. want products have productid 2 or 6 or 9 sql : select * products productid=2 or productid=6 or productid=9. how can sql linq? productids in array

from p in products new int [] { 2,6,9 }.contains(p.productid) select p; 

Comments

Popular posts from this blog

Python __call__ special method practical example -

arrays - jQuery - Retrieve values from HTML elements and return their sum -