Exemplo n.º 1
0
 public IntelligentCookingUnitOfWork(IntelligentCookingContext context)
 {
     _context        = context;
     Categories      = new CategoryRepository(_context);
     Ingredients     = new IngredientRepository(_context);
     Dishes          = new DishRepository(_context);
     DishCategories  = new DishCategoryRepository(_context);
     DishIngredients = new DishIngredientRepository(_context);
     Favourites      = new FavouriteRepository(_context);
     Ratings         = new RatingRepository(_context);
     Users           = new UserRepository(_context);
     RefreshTokens   = new RefreshTokenRespository(_context);
 }
 public RefreshTokenRespository(IntelligentCookingContext context) : base(context)
 {
 }
Exemplo n.º 3
0
 public DishRepository(IntelligentCookingContext context) : base(context)
 {
 }
Exemplo n.º 4
0
 public IngredientRepository(IntelligentCookingContext context) : base(context)
 {
 }
 public CategoryRepository(IntelligentCookingContext context) : base(context)
 {
 }
 public Repository(IntelligentCookingContext context) => Context = context;