Пример #1
0
 public BuyRepository(EaDbContext dbContext,
                      UserManager <EaUser> userManager,
                      ShopItemRepository shopItemRepository)
     : base(dbContext, dbContext.Buys)
 {
     _userManager        = userManager;
     _shopItemRepository = shopItemRepository;
 }
Пример #2
0
 public ShopRepository(EaDbContext dbContext,
                       IOptions <WebApiSettings> settings,
                       UserManager <EaUser> userManager,
                       ShopRepository shopRepository,
                       ShopItemRepository shopItemRepository,
                       BuyRepository buyRepository)
     : base(dbContext, dbContext.Shops)
 {
     _settings           = settings;
     _userManager        = userManager;
     _buyRepository      = buyRepository;
     _shopItemRepository = shopItemRepository;
 }