Ejemplo n.º 1
0
 public override void OnActionExecuting(ActionExecutingContext context)
 {
     base.OnActionExecuting(context);
     ProductsRepo.ChainQueryable(q => q.Include(p => p.Seller));
     OrdersRepo.ChainQueryable(q => q
                               .Include(o => o.Buyer)
                               .Include(o => o.Products)
                               .ThenInclude(p => p.Product.Seller.Address)
                               .Include(o => o.Products)
                               .ThenInclude(p => p.Product.Categories)
                               .ThenInclude(c => c.Category.Parent)
                               );
 }