Does anyone know if there is a tool to convert T-SQL code to LINQ? I'm struggling to find a way of converting the following SQL code to LINQ:
select * from actions as a
inner join
(
select max(actionid) as maxactionid, threaduid from actions as a
where a.actiontypeid not in (3,4)
group by threaduid
) as a2 on a2.maxactionid = a.actionid
where a.userid <> 2
Any help appreciated!