首页 > TAG信息列表 > CreationTime
linq to entity group by 时间
CreationTime是DateTime类型group by 年/月/日/小时group by 年 (from d in YourData.OrderBy(x => x.CreationTime) group d by new { time = new { d.CreationTime.Year } } into g select new { AverageValue = g.Average(p => p.Value), CreationTimeStr = g.Key