C# linq groupby sum

2020-12-18 00:33

阅读:524

标签:group   class   new   sum   div   key   span   rds   records   

var records = studyRecords.GroupBy(x => x.StudyTime.Date).Select(y => new
            {
                date = y.Key,
                seconds = y.Sum(x => x.StudySeconds)
            });

 

C# linq groupby sum

标签:group   class   new   sum   div   key   span   rds   records   

原文地址:https://www.cnblogs.com/dayang12525/p/13973319.html


评论


亲,登录后才可以留言!