I am beginner in linq, I want to convert this SQL query:
select UserId
from Table
where sID in (123, 124)
group by UserId
having count(distinct sID) = 2
I tried like this
var abc = obj_map.dbset
.where(x => sID.Contains(x.sID.ToString()))
.Select(m => UserId)
.Distinct()
.ToList();
How I can solve this?