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