.net 拉姆达 groupby(p => p.X) order by count(c.Count())

//国家
var entityCountriesList = aliexpressEntities.SYS_CourierCode.Where(whereSelect.Compile()).GroupBy(p => p.ToCountries).OrderByDescending(c => c.Count()).Select(c => c.Key + "(" + c.Count() + ")").Distinct().ToList();

posted @ 2015-01-02 21:29  虫虫飞520  阅读(1027)  评论(0编辑  收藏  举报