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

posted @ 2019-09-14 09:22  grj001  阅读(1183)  评论(0)    收藏  举报