Sql:
select a.id, b.name
from a
left join b on a.id = b.id
I want to use lambda in EF to get the same result in this sql
Here is what I've done:
var list = entities.a
.GroupJoin(
entities.b,
a => a.id,
b => b.id,
(a, b) => new { a, b })
.Select(o => o)
.ToList();
Here Select(o => o)
, I just don't know how to get the same result in sql
select a.id, b.name