I have been struggling to update below query since yesterday but no luck.
In below query I needed to replace int idSiteno with int[] SelectedidSiteno - you see replacing int with int array.
I tried with .Contains .Any almost everything but no way near the solution. Could you please help here.
ICollection<Department> dbList = _db.Departments
.Include(l => l.Sites)
.Where(l => l.idCompany == idCompany && l.Disabled == "N"
&& l.Sites.Any(x => x.idSite == idSiteno))
.OrderBy(l => l.SortOrder).ToList();
Where Id IN (select ...of SQL?