how to use left join?
caobingsheng opened this issue · comments
caobingsheng commented
how to use left join?
miquik commented
You can do something like this:
let results = Enumerable.from(arr1) .groupJoin(arr2, (outer) => outer.key, (inner) => inner.key, (outer, inner) => ({o:outer,i:inner})) .selectMany((xy) => xy.i.defaultIfEmpty(), (outer, inner) => ({o:outer.o,i:inner})) .select((x) => ({ // your select })) .toArray()
caobingsheng commented
Thanks a lot