Exemple #1
0
 public UnitOfWork(TastyMealDbContext dbContext)
 {
     _dbContext = dbContext;
     Category   = new CategoryRepository(_dbContext);
     FoodType   = new FoodTypeRepository(_dbContext);
     MenuItem   = new MenuItemRepository(_dbContext);
 }
Exemple #2
0
 public CategoryRepository(TastyMealDbContext dbContext) : base(dbContext)
 {
     _dbContext = dbContext;
 }
 public FoodTypeRepository(TastyMealDbContext dbContext) : base(dbContext)
 {
     _dbContext = dbContext;
 }
Exemple #4
0
 public MenuItemRepository(TastyMealDbContext dbContext) : base(dbContext)
 {
     _dbContext = dbContext;
 }