在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
var skill = query.GroupBy(i=>i.SkillTypeId) .Select(i => new { skillType=i.key, skill=i.Select(s=>new{ i.Id, i.Level, i.IsEquiped, }) 输出结果 { "skillType":“刀” "skill": [ { "Id": 35, "Level": 1, "IsEquiped": true, }, { "Id": 36, "Level": 1, "IsEquiped": true, }, ] "skillType":"剑" "skill": [ { "Id": 35, "Level": 1, "IsEquiped": true, }, { "Id": 36, "Level": 1, "IsEquiped": true, }, ] } 转自:https://blog.csdn.net/hhhhhhenrik/article/details/81980594?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论