from person in persons
group person by person.sex into g
select new{ gender=g.Key,list=g.Tolist()}
Powered by: 博客园 Copyright © 2024 Learn more Powered by .NET 8.0 on Kubernetes