C#linq join on 后多个条件怎么写

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语句里面去.

原文地址:https://www.cnblogs.com/grj001/p/12224033.html