Hello colleagues. There are data on orders, who makes and how many days, pulled out the main fields is the name of the employee and the number of days to complete the order:
new OrderDetailsMini() { name = detailse.Employee.Name, days = detailse.Price.TimeCraft * detailse.Count }); There are a lot of such lines in the collection. How can I group people by name and calculate the sum of all the days they need for orders? Can this be done in LINQ or not? In SQL, this is easy, but something with EF I'm a little stuck.

data.GroupBy(x => x.name, x=>x.days).Select(x => new OrderDetailsMini {name = x.Key, days = x.Sum()})- tym32167