Ejemplo n.º 1
0
 public DataManager(IRepositoryFlower repositoryFlower, IRepositoryPlantation repositoryPlantation,
                    IRepositoryWarehouse repositoryWarehouse, IRepositorySupply repositorySupply,
                    IRepositoryPlantationFlower repositoryPlantationFlower, IRepositorySupplyFlower repositorySupplyFlower,
                    IRepositoryWarehouseFlower repositoryWarehouseFlower)
 {
     Flowers           = repositoryFlower;
     Plantations       = repositoryPlantation;
     Supplies          = repositorySupply;
     Warehouses        = repositoryWarehouse;
     PlantationFlowers = repositoryPlantationFlower;
     WarehouseFlowers  = repositoryWarehouseFlower;
     SupplyFlowers     = repositorySupplyFlower;
 }
Ejemplo n.º 2
0
        public void Initialize()
        {
            _context            = new DbContextDapper();
            _repositoryCustomer = new RepositoryCustomerDapper(_context);
            _repositoryUsers    = new CRUDDapper <Users>(_context);
            _repositorySupply   = new RepositorySupplyDapper(_context);
            _repositoryAddress  = new CRUDDapper <Address>(_context);

            //_context = new DbContextEF();
            //_repositoryCustomer = new RepositoryCustomerEF(_context);
            //_repositoryUsers = new CRUDEF<Users,UserQuery>(_context);
            //_repositorySupply = new RepositorySupplyEF(_context);
            //_repositoryAddress = new CRUDEF<Address, AddressQuery>(_context);
        }
Ejemplo n.º 3
0
 public BusinessSupply(IUnityOfWork uow, IRepositorySupply repository, IRepositoryAddress repositoryAddress)
     : base(uow)
 {
     _repositorySupply  = repository;
     _repositoryAddress = repositoryAddress;
 }