linq sum的问题
select sum(a),sum(b),sum(c) from tab where year=2013 and month=4转换成linq怎么写 ,最好是lamda语法 --------------------编程问答--------------------
var tmp=db.tab.Where(x=>x.year==2013 && x.month==4);--------------------编程问答-------------------- 除
var S = new {X=this.tmp.Sum(x=>x.a),Y=this.tmp.Sum(x=>x.b),Z=this.tmp.Sum(x=>x.c)};
补充:.NET技术 , ASP.NET