摘要:
1.计数var q = from p in db.Products group p by p.CategoryID into g select new { g.Key, NumProducts = g.Count() }; 语句描画:Linq运用Group By和Count失掉每个CategoryID中产物的数目。说明:先按CategoryID归类,取出CategoryID值和各个分... 阅读全文
posted @ 2011-11-18 13:56
王小白
阅读(15800)
评论(1)
推荐(0)
浙公网安备 33010602011771号