2016-08-11 43 views

回答

0
from element in t1 
join otherElement in t2 
on element.match equals otherElement.match 
where t2.x == true 
select new { 
      column1 = otherElement.column1, 
      column2 = otherElement.column2 
      //add all the elements of t1 here 
      } 

加入子句需要兩個源序列作爲輸入。每個序列中的元素必須是或包含可以與其他序列中的相應屬性進行比較的屬性。

https://msdn.microsoft.com/en-us/library/bb311040.aspx