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) { }
public DishRepository(IntelligentCookingContext context) : base(context) { }
public IngredientRepository(IntelligentCookingContext context) : base(context) { }
public CategoryRepository(IntelligentCookingContext context) : base(context) { }
public Repository(IntelligentCookingContext context) => Context = context;