Lambda表达式对DataRow处理

DataRow [] dr=pageSet.PageSet.Tables[0].Select("TradeType='存款'");
StoreGold = dr.Sum<DataRow>(r => (long)r["transScore"]);
DrawGold = pageSet.PageSet.Tables[0].Select("TradeType='取款'").Sum<DataRow>(r => (long)r["transScore"]);

posted @ 2016-06-03 15:52  唔愛吃蘋果  阅读(541)  评论(0编辑  收藏  举报