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

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