public ObjectDao(string connectionString = @"////////////") { _connectionString = connectionString; Users = new UsersDao(_connectionString, this); Bonus = new BonusDao(_connectionString, this); }
public ObjectDao(string storagePath, string storageName = "StorageJson") { _storagePath = Path.Combine(storagePath, storageName); CreateDirectory(_storagePath); Users = new UsersDao(_storagePath); Bonus = new BonusDao(_storagePath); }
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); }
public BonusBll(IBonusDAO bonusDAO) { _bonusDao = bonusDAO; }
public BonusManager(IContextContainer container) : base(container) { _bonusDAO = new BonusDAO(container); }