public UnitOfWork(ApplicationDbContext context) { _context = context; Foods = new FoodRepository(_context); Products = new ProductRepository(_context); Recipes = new RecipeRepository(_context); Shoppinglists = new ShoppinglistRepository(_context); }
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); }
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); }