How to order the items in a nested LINQ-provided collection
- by Carson McComas
I've got a (SQL Server) database table called Category.
And another database table called SubCategory.
SubCategory has a foreign key relationship to Category. Because of this, thanks to LINQ, each Cateogory has a property called SubCategories and LINQ is nice enough to return all the SubCategories associated with my Category when I grab it.
If I…