public ShoppingCartService(ComputerStoreDbContext context) : base(context)
 {
     itemOrderService           = new ItemOrderService(context);
     productItemService         = new ProductItemService(context);
     productItemCategoryService = new GenericService <ProductItemCategory>(context);
     categoryService            = new GenericService <Category>(context);
 }
 public ItemOrdersController(ComputerStoreDbContext context) : base(context)
 {
     service = new ItemOrderService(context);
 }
 public ItemOrderService(ComputerStoreDbContext context) : base(context)
 {
 }
Example #4
0
 public GenericRepository(ComputerStoreDbContext context)
 {
     this.Context = context ?? throw new ArgumentNullException(nameof(context));
     this.DbSet   = this.Context.Set <TEntity>();
 }
Example #5
0
 public CategoriesController(ComputerStoreDbContext context) : base(context)
 {
 }
Example #6
0
 public ProductItemsController(ComputerStoreDbContext context) : base(context)
 {
     service = new ProductItemService(context);
 }
 public ProductsRepository(ComputerStoreDbContext context)
 {
     _context = context;
 }
 public CategoriesRepository(ComputerStoreDbContext context)
 {
     _context = context;
 }
Example #9
0
 public ShoppingCartsController(ComputerStoreDbContext context) : base(context)
 {
     service = new ShoppingCartService(context);
 }
Example #10
0
 public ProductItemService(ComputerStoreDbContext context) : base(context)
 {
     categoryService            = new GenericService <Category>(context);
     productItemCategoryService = new GenericService <ProductItemCategory>(context);
 }
 public ComputerStoreController(ComputerStoreDbContext context)
 {
     _context = context;
 }
Example #12
0
 public GenericService(ComputerStoreDbContext context)
 {
     this.context = context;
     this.repo    = new GenericRepository <TEntity>(context);
 }
Example #13
0
 public MembersRepository(ComputerStoreDbContext context)
 {
     _context = context;
 }
 public CartItemsRepository(ComputerStoreDbContext context)
 {
     _context = context;
 }
Example #15
0
 public GenericController(ComputerStoreDbContext context)
 {
     this._context = context;
     service       = new GenericService <TEntity>(context);
 }
Example #16
0
 public ProductItemCategoryController(ComputerStoreDbContext context) : base(context)
 {
 }
Example #17
0
 public DbQueryRunner(ComputerStoreDbContext context)
 {
     this.Context = context ?? throw new ArgumentNullException(nameof(context));
 }