如何使用linq擴(kuò)展方法執(zhí)行左外連接?假設(shè)我有一個(gè)左外部連接:from f in Foojoin b in Bar on f.Foo_Id equals b.Foo_Id into gfrom result in g.DefaultIfEmpty()select new { Foo = f, Bar = result }如何使用擴(kuò)展方法表達(dá)相同的任務(wù)?例如:Foo.GroupJoin(Bar, f => f.Foo_Id, b => b.Foo_Id, (f,b) => ???)
.Select(???)
如何使用linq擴(kuò)展方法執(zhí)行左外連接?
繁華開滿天機(jī)
2019-07-11 15:22:36