1
在LINQ我試圖做這樣的Linq加入多個條件?
select * from tbl1 join tbl2 on tbl1.column1= tbl2.column1 and tbl1.column2 = tbl2.column2
我怎麼能寫在LINQ的上述查詢....我想這樣的,但給錯誤
var sasi = from table1 in dtFetch.AsEnumerable()
join table2 in dssap.AsEnumerable()
on new {
table1.Field<string >["SAPQuotationNo"],
table1.Field<string >["Invoiceno"]}
equals new {
table2.Field<string>["SAPQuotationNo"],
table2.Field <string>["Invoiceno"]
}
tahnks迴應,我會檢查和親密的你 –