public UserRepository(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IOptions <JWTSettings> optionsAccessor,
     WebshopContext context)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _options       = optionsAccessor.Value;
 }
示例#2
0
        public UnitOfWork(
            WebshopContext context,
            UserManager <ApplicationUser> userManager,
            SignInManager <ApplicationUser> signInManager,
            IOptions <JWTSettings> optionsAccessor)
        {
            _context = context;

            Products       = new ProductRepository(_context);
            ShoppingCarts  = new ShoppingCartRepository(_context);
            Orders         = new OrderRepository(_context);
            Users          = new UserRepository(userManager, signInManager, optionsAccessor, _context);
            Customizations = new CustomizationRespository(_context);
            Auction        = new AuctionRepository(_context);
            Bid            = new BidRepository(_context);
        }
示例#3
0
 public CustomizationRespository(WebshopContext context)
     : base(context)
 {
 }
示例#4
0
 public ProductRepository(WebshopContext context)
     : base(context)
 {
 }
示例#5
0
 public ShoppingCartRepository(WebshopContext context)
     : base(context)
 {
 }
 public AuctionRepository(WebshopContext context)
     : base(context)
 {
 }
示例#7
0
 public OrderRepository(WebshopContext context)
     : base(context)
 {
 }
示例#8
0
 public BidRepository(WebshopContext context)
     : base(context)
 {
 }