Linq - 进入leftjoin

时间:2015-04-17 20:46:15

标签: c# linq

from foo in context.Foo
join current in context.v_CurrentFooIds on foo.Id equals
   current.CurrentId
join approved in context.v_ApprovedFooIds on foo.VersionIndependentId
   equals approved.VersionIndependentId into leftjoin
from appr in leftjoin.DefaultIfEmpty()
where
   matches.Contains(foo.UniqueFormulaNumber) && !foo.IsTemplate
   && appr == null

我不明白leftjoin在这种情况下做了什么。

我迷失在equals approved.VersionIndependent into leftJoin from appr in leftjoin.DefaultIfEmpty()

这是什么意思?

0 个答案:

没有答案