Exemplo n.º 1
0
        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;
 }
Exemplo n.º 3
0
 public InventoryRepo(IInventoryContext context)
 {
     this.ctx = context;
 }
Exemplo n.º 4
0
 public ProductRepository(IInventoryContext inventoryContext)
 {
     _context = inventoryContext ?? throw new ArgumentNullException(nameof(inventoryContext));
 }
 internal AddInventoryCommand(IUserInterface userInterface, IInventoryContext context) : base(userInterface)
 {
     _context = context;
 }
Exemplo n.º 6
0
 internal UpdateQuantityCommand(IUserInterface userInterface, IInventoryContext context) : base(userInterface)
 {
     _context = context;
 }
Exemplo n.º 7
0
 public InventoryRepository(IInventoryContext Context)
 {
     context = Context;
 }
        //public InventoryItemsController()
        //{

        //}
        public InventoryItemsController(IInventoryContext context)
        {
            _context = context;
        }
Exemplo n.º 9
0
 public Repository(IInventoryContext ct)
 {
     context = ct as InventoryContext;
     dbSet   = context.Set <T>();
 }
Exemplo n.º 10
0
 public InventoryRepository(IInventoryContext context)
 {
     this.context = context;
 }
 public InventoryCommandFactory(IUserInterface userInterface, IInventoryContext context)
 {
     _userInterface = userInterface;
     _context       = context;
 }
Exemplo n.º 12
0
 public UnitOfWorkManager(IInventoryContext context)
 {
     _context = context as InventoryContext;
 }