How to I convert the following SQL statement into LinqToSQL?
select t1.name, (select COUNT(*) from table2 where t2.f_id = t1.id) as cnt
from table1 t1
My attempts seem to end up doing an inner join (and therefore giving wildly inaccurate results).
Thanks