Monday, December 13, 2010

Group By using Linq

Consider quote is a list that contain number of properties and one of the property is Item_Number , this is going to group the items by item_number property

var Items = (from e in quote
             group e by e.Item_Number into items
             select items);

No comments:

Post a Comment