linq join on 后多個條件怎么寫
方法1:
2樓說的方法.
方法2:
on new{o.id,0.code} equals new {p.id,p.code}
方法3:
var tmp=from m in table1 from n in table2 where m.id==n.id && m.code==n.code select new{...};
方法4:
你把后面的條件放在where語句里面去.
方法1:
2樓說的方法.
方法2:
on new{o.id,0.code} equals new {p.id,p.code}
方法3:
var tmp=from m in table1 from n in table2 where m.id==n.id && m.code==n.code select new{...};
方法4:
你把后面的條件放在where語句里面去.
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。