public UnitOfWork(TastyMealDbContext dbContext) { _dbContext = dbContext; Category = new CategoryRepository(_dbContext); FoodType = new FoodTypeRepository(_dbContext); MenuItem = new MenuItemRepository(_dbContext); }
public CategoryRepository(TastyMealDbContext dbContext) : base(dbContext) { _dbContext = dbContext; }
public FoodTypeRepository(TastyMealDbContext dbContext) : base(dbContext) { _dbContext = dbContext; }
public MenuItemRepository(TastyMealDbContext dbContext) : base(dbContext) { _dbContext = dbContext; }