Ejemplo n.º 1
0
 public IQueryable <Fridge> GetFridgesNaviagtion()
 {
     return(Fridges
            .Include(col => col.ShelfSet)
            .ThenInclude(sh => sh.ShelfSymbolNavigation)
            .Include(col => col.HandleSet)
            .ThenInclude(han => han.HandleSymbolNavigation)
            .Include(col => col.AdditionalSet)
            .ThenInclude(ad => ad.AdditionalEqSymbolNavigation)
            .Include(col => col.BalconySet)
            .ThenInclude(bl => bl.BalconySymbolNavigation)
            .Include(col => col.BodySymbolNavigation)
            .Include(col => col.CompressorSymbolNavigation));
 }
Ejemplo n.º 2
0
 public Fridge GetFridge(int fridgeId)
 {
     return(Fridges.Include(x => x.BodySymbolNavigation).FirstOrDefault(x => x.FridgeId == fridgeId));
 }