コード例 #1
0
 public ProductRepository(IHttpContextAccessor accessor,
                          ObMultiChoiceContext db, IMapper mapper) : base(accessor, db)
 {
     _db     = db;
     _mapper = mapper;
     _set    = _db.Products;
 }
コード例 #2
0
 public InventoryRepository(IHttpContextAccessor accessor, ObMultiChoiceContext db, IMapper mapper) : base(
         accessor, db)
 {
     _db     = db;
     _set    = _db.Set <Inventory>();
     _mapper = mapper;
 }
コード例 #3
0
 public InventoriesController(ObMultiChoiceContext context, IInventoryRepository repo, ILogger <InventoriesController> logger)
 {
     _context = context;
     _repo    = repo;
     _logger  = logger;
 }
コード例 #4
0
 public GenericBaseRepository(IHttpContextAccessor accessor, ObMultiChoiceContext db)
 {
     _accessor = accessor;
     _db       = db;
 }
コード例 #5
0
 public ProductsController(ObMultiChoiceContext context, IProductRepository repo)
 {
     _context = context;
     _repo    = repo;
 }
コード例 #6
0
 public ShelfRepository(IHttpContextAccessor accessor, ObMultiChoiceContext db) : base(accessor, db)
 {
     _db = db;
 }
コード例 #7
0
 public ShelvesController(ObMultiChoiceContext context, IShelfRepository repo)
 {
     _context = context;
     _repo    = repo;
 }