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