Exemplo n.º 1
0
        public ObjectDao(string connectionString = @"////////////")
        {
            _connectionString = connectionString;

            Users = new UsersDao(_connectionString, this);
            Bonus = new BonusDao(_connectionString, this);
        }
Exemplo n.º 2
0
        public ObjectDao(string storagePath, string storageName = "StorageJson")
        {
            _storagePath = Path.Combine(storagePath, storageName);
            CreateDirectory(_storagePath);

            Users = new UsersDao(_storagePath);
            Bonus = new BonusDao(_storagePath);
        }
Exemplo n.º 3
0
 public OrderManager(IContextContainer container)
     : base(container)
 {
     _orderDAO       = new OrderDAO(container);
     _productDAO     = new ProductDAO(container);
     _bonusDAO       = new BonusDAO(container);
     _cartDAO        = new ShoppingCartDAO(container);
     _addressInfoDAO = new AddressInfoDAO(container);
     _customerDAO    = new CustomerDAO(container);
 }
Exemplo n.º 4
0
 public OrderManager(IContextContainer container)
     : base(container)
 {
     _orderDAO = new OrderDAO(container);
     _productDAO = new ProductDAO(container);
     _bonusDAO = new BonusDAO(container);
     _cartDAO = new ShoppingCartDAO(container);
     _addressInfoDAO = new AddressInfoDAO(container);
     _customerDAO = new CustomerDAO(container);
 }
Exemplo n.º 5
0
 public BonusBll(IBonusDAO bonusDAO)
 {
     _bonusDao = bonusDAO;
 }
Exemplo n.º 6
0
 public BonusManager(IContextContainer container) : base(container)
 {
     _bonusDAO = new BonusDAO(container);
 }
Exemplo n.º 7
0
 public BonusManager(IContextContainer container) : base(container)
 {
     _bonusDAO = new BonusDAO(container);
 }