public PurchaseOrderItemController(SCMSContext _context) { var optionBuilder = new DbContextOptions <SCMSContext>(); _purchaseOrderItemRepository = new PurchaseOrderItemRepository(_context); _purchaseOrderItemService = new PurchaseOrderItemService(_purchaseOrderItemRepository); }
public UnitOfWork(SCMSContext context) { _context = context; Inventories = new InventoryRepository(_context); Items = new ItemRepository(_context); Vendors = new VendorRepository(_context); }
public ItemController(SCMSContext _context) { var optionBuilder = new DbContextOptions <SCMSContext>(); _itemRepository = new ItemRepository(_context); _itemService = new ItemService(_itemRepository); }
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) { }
public ItemRepository(SCMSContext context) : base(context) { }
public ReceiptRepository(SCMSContext context) : base(context) { }
public VendorRepository(SCMSContext context) : base(context) { }
public EntityService(SCMSContext db) { _db = db; _dbset = _db.Set <T>(); }
public Repository(SCMSContext context) { this.Context = context; }