I’m having trouble to convert this SQL to Linq To Entities. Can someone explain me how I should break it down?
select
p.ID, p.Name, p.IsActive, ug.Name
from
Projects as p
inner join UserGroups as ug ON p.UserGroups_ID = ug.ID
where
p.UserGroups_ID IN (select UserGroups_ID from UsersToUserGroups where Users_ID = 1)
and
p.IsDeleted = 0
order by
p.UserGroups_ID,
p.Name
Thanks
1 Answer