I have the following expression
var q = from c in D1 join dp in (from e in E1 group e by e.ID into g select new { ID = g.Key, Cnt = g.Count() }) on c.ID equals dp.ID into dpp from v in dpp.DefaultIfEmpty() select new { c.ID, Cnt= v.Cnt ?? 0 };
How can i convert this to Lambda expression?
Here’s one way to go. This kind-of matches the above.
After refactoring, I came up with this:
For comparision, the query comprehension form is: