I have this SQL query :
select *
from press
where compId = 36
and categories in (1, 7, 21);
I tried to apply it in format of an ASP.NET MVC repository pattern:
iPressRepository.GetAll().Where(x => (x.compId == 36)).ToList();
But my result is incorrect, because I missed categories 'in' in my second query. Is there a way to apply IN
operator with a repository pattern?
Thanks in advance