I'm having trouble with creating a LINQ query with IN parameters.
Corresponding SQL Query is
SELECT * FROM TABLEDEMO WHERE ID IN(SELECT ID FROM TABLE2)
How do I achieve the same using LINQ?
I can also take a list variable to store multiple IDs.
(from x in objEntity.TABLEDEMO
where x.TABLEDEMO (here should be the in parameter)
select x);