Hi,
i currently have the problem that i don't know how to make a LINQ select to grab ALL Productpricediscounts from a category:
public class ProductCategory
{
public List<Product> categoryProducts;
}
public class Product
{
public List<Productprice> productPrices;
}
public class Productprice
{
public List<Productpricediscount> priceDiscounts;
}
So, my query has to look something like:
categoryProducts.Select(p => p.productPrices).Select(x => x.?!?!
The problem is that i would hav expected the x. - intellisense to suggest "priceDiscounts", but i get "list"-values ( like: "Any", "Select", "Distinct" and so on..)
Thanks a lot