Exemplo n.º 1
0
 public Collector(IDatabaseContext context)
 {
     _context      = context;
     Items         = new ItemRepository(_context);
     Ingredients   = new IngredientRepository(_context);
     Foodplans     = new FoodplanRepository(_context);
     Shoppinglists = new ShoppinglistRepository(_context);
     Recipes       = new RecipeRepository(_context);
     Users         = new UserRepository(_context);
 }
Exemplo n.º 2
0
 public Collector(IDatabaseContext context)
 {
     _context = context;   
     Items = new ItemRepository(_context);
     Ingredients = new IngredientRepository(_context);
     Foodplans = new FoodplanRepository(_context);
     Shoppinglists = new ShoppinglistRepository(_context);
     Recipes = new RecipeRepository(_context);
     Users = new UserRepository(_context); 
             
 }