public UnitOfWork(IInventoryContext context) { _context = context as InventoryContext; _objectContext = ((IObjectContextAdapter)_context).ObjectContext; if (_objectContext.Connection.State != ConnectionState.Open) { _objectContext.Connection.Open(); } }
public ProductRepository(IInventoryContext context) { _context = context; }
public InventoryRepo(IInventoryContext context) { this.ctx = context; }
public ProductRepository(IInventoryContext inventoryContext) { _context = inventoryContext ?? throw new ArgumentNullException(nameof(inventoryContext)); }
internal AddInventoryCommand(IUserInterface userInterface, IInventoryContext context) : base(userInterface) { _context = context; }
internal UpdateQuantityCommand(IUserInterface userInterface, IInventoryContext context) : base(userInterface) { _context = context; }
public InventoryRepository(IInventoryContext Context) { context = Context; }
//public InventoryItemsController() //{ //} public InventoryItemsController(IInventoryContext context) { _context = context; }
public Repository(IInventoryContext ct) { context = ct as InventoryContext; dbSet = context.Set <T>(); }
public InventoryRepository(IInventoryContext context) { this.context = context; }
public InventoryCommandFactory(IUserInterface userInterface, IInventoryContext context) { _userInterface = userInterface; _context = context; }
public UnitOfWorkManager(IInventoryContext context) { _context = context as InventoryContext; }