/// <summary>
 /// 有參構造函數
 /// </summary>
 /// <param name="connectionstring">數據庫連接字符串</param>
 public PromotionsAmountDiscountDao(string connectionstring)
 {
     _access = DBFactory.getDBAccess(DBType.MySql, connectionstring);
     this.connStr = connectionstring;
     _prodpromoDao = new ProdPromoDao(connectionstring);
     _proCateDao = new ProductCategoryDao(connectionstring);
     _prodCategSet = new ProductCategorySetDao(connectionstring);
     _proAllDao = new PromoAllDao(connectionstring);
     _usconDao = new UserConditionDao(connectionstring);
     _promoDisDao = new PromoDiscountDao(connectionstring);
     _mySql = new MySqlDao(connectionstring);
 }
 public PromotionsAmountDiscountMgr(string connectionstring)
 {
     _mysqlDao = new MySqlDao(connectionstring);
     _padDao = new PromotionsAmountDiscountDao(connectionstring);
     _prodpromoDao = new ProdPromoDao(connectionstring);
     _proCateDao = new ProductCategoryDao(connectionstring);
     _prodCategSet = new ProductCategorySetDao(connectionstring);
     _proAllDao = new PromoAllDao(connectionstring);
     _usconDao = new UserConditionDao(connectionstring);
     _promoDisDao = new PromoDiscountDao(connectionstring);
     _promoMainDao = new PromotionsMaintainDao(connectionstring);
     _prodDao = new ProductDao(connectionstring);
     _vendorBrandDao = new VendorBrandDao(connectionstring);
     connStr = connectionstring;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 有參構造函數
 /// </summary>
 /// <param name="connectionstring">數據庫連接字符串</param>
 public PromotionsAmountGiftDao(string connectionstring)
 {
     _access = DBFactory.getDBAccess(DBType.MySql, connectionstring);
     this.connStr = connectionstring;
     _proCateDao = new ProductCategoryDao(connectionstring);
     _prodCategSetDao = new ProductCategorySetDao(connectionstring);
     _prodpromoDao = new ProdPromoDao(connectionstring);
     _proAllDao = new PromoAllDao(connectionstring);
     _usconDao = new UserConditionDao(connectionstring);
     _promoDisDao = new PromoDiscountDao(connectionstring);
     _serialDao = new SerialDao(connectionstring);
     _ptDao = new PromoTicketDao(connectionstring);
     _prodDao = new ProductDao(connectionstring);
     _promoMainDao = new PromotionsMaintainDao(connectionstring);
     _vendorBrandDao = new VendorBrandDao(connectionstring);
 }