c#GroupBy的使用

it2023-01-22  75

var groupList1 = grantCard.GroupBy(x => new { x.ProductId }).Select(group => new { ProductId = group.Key, Quantity = group.Count() }).ToList();
最新回复(0)