Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obtaining like records
Message
De
24/10/2011 14:37:14
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
24/10/2011 13:42:55
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
LINQ
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Divers
Thread ID:
01527091
Message ID:
01527215
Vues:
40
hi Tim,

In the following query, I am selecting all CategoryTypes and creating an IEnumerable OF IEnumerable - IGrouping, I think. What I get though is a list of Categorytype with an embedded igrouping of categories which belong to the parent category. You could use similar logic, I think:
            var query = from c in _unGroupedCategoryList
                        orderby c.CategoryTypeName, c.CategoryName
                        group c.CategoryName by c.CategoryTypeName into cats
                        select cats;

            this.CategoryList = query.ToList();
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform