public PurchaseOrderItemController(SCMSContext _context)
        {
            var optionBuilder = new DbContextOptions <SCMSContext>();

            _purchaseOrderItemRepository = new PurchaseOrderItemRepository(_context);
            _purchaseOrderItemService    = new PurchaseOrderItemService(_purchaseOrderItemRepository);
        }
示例#2
0
 public UnitOfWork(SCMSContext context)
 {
     _context    = context;
     Inventories = new InventoryRepository(_context);
     Items       = new ItemRepository(_context);
     Vendors     = new VendorRepository(_context);
 }
示例#3
0
        public ItemController(SCMSContext _context)
        {
            var optionBuilder = new DbContextOptions <SCMSContext>();

            _itemRepository = new ItemRepository(_context);
            _itemService    = new ItemService(_itemRepository);
        }
示例#4
0
        public InventoryController(SCMSContext _context)
        {
            var optionBuilder = new DbContextOptions <SCMSContext>();

            _inventoryRepository = new InventoryRepository(_context);
            _inventoryService    = new InventoryService(_inventoryRepository, _inventoryItemRepository);
        }
        public VendorController(SCMSContext _context)
        {
            var optionBuilder = new DbContextOptions <SCMSContext>();

            _vendorRepository = new VendorRepository(_context);
            _vendorService    = new VendorService(_vendorRepository);
        }
        public ReceiptController(SCMSContext _context)
        {
            var optionBuilder = new DbContextOptions <SCMSContext>();

            _receiptRepository       = new ReceiptRepository(_context);
            _receiptItemRepository   = new ReceiptItemRepository(_context);
            _inventoryItemRepository = new InventoryItemRepository(_context);
            _receiptService          = new ReceiptService(_receiptRepository, _receiptItemRepository, _inventoryItemRepository);
        }
 public InventoryRepository(SCMSContext context) : base(context)
 {
 }
 public PurchaseOrderItemRepository(SCMSContext context) : base(context)
 {
 }
示例#9
0
 public ItemRepository(SCMSContext context) : base(context)
 {
 }
示例#10
0
 public ReceiptRepository(SCMSContext context) : base(context)
 {
 }
 public VendorRepository(SCMSContext context) : base(context)
 {
 }
 public EntityService(SCMSContext db)
 {
     _db    = db;
     _dbset = _db.Set <T>();
 }
示例#13
0
 public Repository(SCMSContext context)
 {
     this.Context = context;
 }