I have simple SQL query as:
select * from EH_PP_DmainComps
where domainCode in (1,2)
I want to make same query in LINQ.
I made it as:
from a in context.EH_PP_DmainComps
where a.domainCode.ToString().Contains(id)
select new Entity.correlations(a)
Note: id in a.domainCode.ToString().Contains(id) has value (1,2) which is to be used within In Clause
.
But its not working.
How can i form this simple query in LINQ??