public InventoryController(ILogger <InventoryController> logger,
                                   HTVMDEVDB01Context dbContext)
        {
            _logger    = logger;
            _dbcontext = dbContext;

            _repository  = new VMGenericRepository <ProductInventory>(_dbcontext);
            _prepository = new VMGenericRepository <Product>(_dbcontext);
        }
Exemplo n.º 2
0
 public OrderController(ILogger <OrderController> logger,
                        HTVMDEVDB01Context dbContext)
 {
     _logger    = logger;
     _dbcontext = dbContext;
 }
 public VMGenericRepository(HTVMDEVDB01Context context)
 {
     _context = context;
     _dbSet   = context.Set <TEntity>();
 }
Exemplo n.º 4
0
 public VMCommandRepository(HTVMDEVDB01Context context)
 {
     _context = context;
 }