日期:2014-05-20 浏览次数:20750 次
var q = from dd in
(from ddd in d
group by ddd.物资,ddd.供应商 into g
select {Num=g.Count(), 物资=g.物资, 供应商=g.供应商}
)
join bb in b on dd.物资 equals bb.id
join cc in c on dd.供应商 equals cc.id
select {物资=bb.供应物资,供应商=cc.供应商,供货次数=dd.Num};