使用Asp.net的Linq Concept [英] Linq Concept using Asp.net

查看:109
本文介绍了使用Asp.net的Linq Concept的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用LINQ在列表中存储

实际在此网格视图中输出
名称项目oty
选购lux 10
嗡嗡声2
过去20年购物

输出
名称项目oty
选购lux 10
哼2
过去20

Stored In List Using In LINQ

Actually output in this grid view
Name Item oty
shop lux 10
shop hum 2
shop past 20

Output
Name Item oty
shop lux 10
hum 2
past 20

推荐答案

您应该使用

You should use something like

var q = from i in myList group i by i.Name;



如果您给我们更多信息,我们也许可以提供更多帮助.

希望这会有所帮助.



If you give us more info we may be able to help more.

Hope this helps.


这篇关于使用Asp.net的Linq Concept的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆