generate functionTue, 07 Feb 2023

order selection function with grouping by month

var results = list.GroupBy(x => x.Month) .Select(x => new { Month = x.Key, Sum = x.Sum(y => y.OrderTotal) })

Questions about programming?Chat with your personal AI assistant