Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. db.Products.Include(x => x.ProductCategoryRelations)
  2. .Include(x => x.ProductCategoryRelations.Select(c => c.Category))
  3. .Include(x => x.ProductFileRelations)
  4. .Include(x => x.ProductFileRelations.Select(c => c.File))
  5. .Include(x => x.ProductPropertyRelations)
  6. .Include(x => x.ProductPropertyRelations.Select(c => c.Property))
  7. .Include(x => x.ProductColorRelations)
  8. .Include(x => x.ProductColorRelations.Select(c => c.Color))
  9. .Include(x => x.Brand)
  10. .Where(predicate)
  11. .ToListAsync();
  12.  
  13. 1.Product
  14. 2.Brand
  15. 3.Product
  16. 4.ProductCategoryRelations
  17. 5.Product
  18. .....
  19. .....
  20. .....
  21. .....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement