How to user IN operator in Linq?

Posted by Umapathy on Stack Overflow See other posts from Stack Overflow or by Umapathy
Published on 2010-04-26T15:30:27Z Indexed on 2010/04/26 15:33 UTC
Read the original article Hit count: 176

Filed under:
|

Query:

Select * from pu_Products where Part_Number in ('031832','027861', '028020', '033378') and User_Id = 50 and Is_Deleted = 0

The above mentioned query is in SQL and i need the query might be converted into Linq. Is there any option using the "IN" operator in Linq?. can you convert above mentioned query into Linq?

© Stack Overflow or respective owner

Related posts about asp.net-mvc-2

Related posts about linq-to-sql