Beispiel #1
0
 public UnitOfWork(ApShopContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("Context was not supplied");
     }
     _context = context;
 }
 public CartRepository(ApShopContext context)
 {
     _dbSet         = context.carts;
     _apShopContext = context;
 }
Beispiel #3
0
 public OrderRepository(ApShopContext context)
 {
     _context = context;
 }
 public UserRepository(ApShopContext context)
 {
     _apShopContext.users = context.users;
 }
 public UserRepository(ApShopContext apShopContext, HashingService hashingService)
 {
     _apShopContext = apShopContext;
     _hashservice   = hashingService;
 }
Beispiel #6
0
 public CategoryRepository(ApShopContext apShopContext)
 {
     _apShopContext = apShopContext;
 }
Beispiel #7
0
 public ItemRepository(ApShopContext apShopContext)
 {
     _apShopContext = apShopContext;
 }