I have a SQL Query and I wanted to convert into LINQ can you please help to do this.
SELECT p.ProductID, p.ProductName FROM tblProducts p
WHERE p.ProductID IN (SELECT s.ProductID FROM tblStock s WHERE s.BarCode = 2222)
In this case BarCode is a null able type.
Use Contains to translate to 'IN':