How would the following be converted to LINQ–EF
select Name
from TableA as TableAOuter
group by TableAOuter.Name, TableAOuter.Id
having(
select count(TableAInner.Id)
from TableA as TableAInner
where TAbleAInner.Reference=TableAOuter.Id) = 0
);
To me, that looks like:
Although I’d be tempted to perform the filtering before the grouping – at which point you can just group the row name:
I think that should do the same thing, right?