Hi,
Yesterday I purchased a license for 2.6 PRO. I love it. Thank you. I'm using this in a ASP.NET 3.5/SQL 2005 website I'm redeveloping. In this instance, I need to access rows from multiple related tables such as Categories, Subcategories, Products, ProductTypes, ProductSizes.
and get all fields by name on every row, like this:
Categories.CategoryName,
Subcategories.SubcategoryName,
Products.ProductName,
ProductSizes.ProductSize,
ProductTypes.ProductTypeName
Subcategories.Weight,
Subcategories.Width,
...etc.
According the the docs, an easy way to join all these is with a Typed List. So I've got this list filtering and sorting based on code from your example in Self-Servicing. However, there are many pages where I need a subset of this Typed List, specifically returning the list with all fields but with distinct Subcategories.SubcategoryName.
The data can have 50 products per subcategory and 50 subcategories per Category, and so the resultset of the list, 1) has a lot of rows, and 2) as a result, the Subcategorynames are repeated X number of times according to the number of products.
The subcategories table has many detail fields that are common to all containing products. I am try to get all rows and columns from the typed list with distinct subcategory names.
How can I do this. Do I need a different approach? Do I have to use LINQ? Any direction would be much appreciated.
Thanks.