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

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -