2017-05-24 179 views

回答

1

LinqPad給出了這樣的翻譯:

Table1 
    .SelectMany (
     t1 => 
     Table2 
      .Where (t2 => (t2.Table1ID) == t1.ID) 
      .DefaultIfEmpty(), 
     (t1, t2) => 
     new 
     { 
      C1 = t1.C1, 
      C2 = t2.C2 
     } 
    ) 
+0

LinqPad再次讓我驚訝。謝謝。 – Rm558