当前位置: 首页>>代码示例>>C#>>正文


C# IDBAccess类代码示例

本文整理汇总了C#中IDBAccess的典型用法代码示例。如果您正苦于以下问题:C# IDBAccess类的具体用法?C# IDBAccess怎么用?C# IDBAccess使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IDBAccess类属于命名空间,在下文中一共展示了IDBAccess类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GenerateExpression

 internal string GenerateExpression(Type type, out List<DbParameter> parameters, IDBAccess dbAccess)
 {
     this.Init(type, dbAccess);
     parameters = new List<DbParameter>();
     int i = 0;
     return " AND " + this.GenerateSQL(ref parameters, ref i);
 }
开发者ID:NoobSkie,项目名称:taobao-shop-helper,代码行数:7,代码来源:Criteria.cs

示例2: SelectCommandCreator

        /// <summary>
        /// 初始化ModifyCommandCreator,dbAccess不能为空
        /// </summary>
        /// <exception cref="RException(DatabaseErrorCode.ConnectDbServerError - 0x00010001)">
        /// 传入的dbAccess为空,引发此异常
        /// </exception>
        /// <param name="dbAccess">数据库访问接口</param>
        public SelectCommandCreator(IDBAccess dbAccess)
        {
            this.DbAccess = dbAccess;

            FilterProterties = new string[0];
            OrderBy = new SortInfo[0];
        }
开发者ID:NoobSkie,项目名称:taobao-shop-helper,代码行数:14,代码来源:SelectCommandCreator.cs

示例3: VendorDao

 public VendorDao(string connectionStr)
 {
     _dbAccess = DBFactory.getDBAccess(DBType.MySql, connectionStr);
     connStr = connectionStr;
     mysqlHelp = new Common.MySqlHelper(connectionStr);
     _serialDao = new SerialDao(connectionStr);
 }
开发者ID:lxh2014,项目名称:gigade-net,代码行数:7,代码来源:VendorDao.cs

示例4: CallerDao

 public CallerDao(string connectionString)
 {
     _access = DBFactory.getDBAccess(DBType.MySql, connectionString);
     _intCurrentTime = (int)BLL.gigade.Common.CommonFunction.GetPHPTime();
     //_strIP = BLL.gigade.Common.CommonFunction.GetClientIP();
     _strIP = CommonFunction.GetIP4Address(CommonFunction.GetClientIP());
 }
开发者ID:lxh2014,项目名称:gigade-net,代码行数:7,代码来源:CallerDao.cs

示例5: ScheduleItemDao

 public ScheduleItemDao(string connectionString)
 {
     //connectionString = "Server=127.0.0.1;database=test;user=root;pwd=198929;charset='utf8'";
     //connectionString = "Server=192.168.18.166;database=test;user=root;pwd=198929;charset='utf8'";
     _access = DBFactory.getDBAccess(DBType.MySql, connectionString);
     conStr = connectionString;
 }
开发者ID:lxh2014,项目名称:gigade-net,代码行数:7,代码来源:ScheduleItemDao.cs

示例6: DeliverMasterMgr

        public DeliverMasterMgr(string connectionString)
        {
            connection = connectionString;
            _ideliver = new DeliverMasterDao(connectionString);
            _access = DBFactory.getDBAccess(DBType.MySql, connectionString);

        }
开发者ID:lxh2014,项目名称:gigade-net,代码行数:7,代码来源:DeliverMasterMgr.cs

示例7: ProductTempDao

        public ProductTempDao(string connectStr)
        {
            _dbAccess = DBFactory.getDBAccess(DBType.MySql, connectStr);

            this.strConn = connectStr;
            reProductDao = new RecommendedProductAttributeDao(connectStr);
        }
开发者ID:lxh2014,项目名称:gigade-net,代码行数:7,代码来源:ProductTempDao.cs

示例8: VipUserMgr

 public VipUserMgr(string connStr)
 {
     _vipUserDao = new VipUserDao(connStr);
     _usersDao = new UsersDao(connStr);
     _dbAccess = DBFactory.getDBAccess(DBType.MySql, connStr);
     conn = connStr;
 }
开发者ID:lxh2014,项目名称:gigade-net,代码行数:7,代码来源:VipUserMgr.cs

示例9: PromotionBannerMgr

 public PromotionBannerMgr(string connectionStr)
 {
     _promotionBannerDao = new PromotionBannerDao(connectionStr);
     _promotionBannerRelationDao = new PromotionBannerRelationDao(connectionStr);
     _mysqlDao = new MySqlDao(connectionStr);
     _vendorBrandDao = new VendorBrandDao(connectionStr);
     _accessMySql = DBFactory.getDBAccess(DBType.MySql, connectionStr);
 }
开发者ID:lxh2014,项目名称:gigade-net,代码行数:8,代码来源:PromotionBannerMgr.cs

示例10: ParticularsSrcDao

        /// <summary>
        /// 方法
        /// </summary>
        /// <param name="connectionString">連接字符串</param>
        /// <param name="particularsSrcType">particularsSrcType = 1 表示使用 db數據庫  particularsSrcType = 2 表示 使用 xml 資料庫</param>
        public ParticularsSrcDao(string connectionString, int particularsSrcType)
        {
            this.connectionString = connectionString;
            this.particularsSrcType = particularsSrcType;

            if (particularsSrcType == 1)
            {
                _dbAccess = DBFactory.getDBAccess(DBType.MySql, connectionString);
            }
        }
开发者ID:lxh2014,项目名称:gigade-net,代码行数:15,代码来源:ParticularsSrcDao.cs

示例11: ProductItemMapExcelMgr

 public ProductItemMapExcelMgr(string connectionString)
 {
     _productItemMapMgr = new ProductItemMapMgr(connectionString);
     _productItemMapDao = new ProductItemMapDao(connectionString);
     _productItemMgr = new ProductItemMgr(connectionString);
     _productItemDao = new ProductItemDao(connectionString);
     _callerMgr = new CallerMgr(connectionString);
     _priceMasterMgr = new PriceMasterMgr(connectionString);
     _access = DBAccess.DBFactory.getDBAccess(DBType.MySql, connectionString);
 }
开发者ID:lxh2014,项目名称:gigade-net,代码行数:10,代码来源:ProductItemMapExcelMgr.cs

示例12: PromoPairDao

        public PromoPairDao(string connectionstring)
        {
            _access = DBFactory.getDBAccess(DBType.MySql, connectionstring);
            this.connStr = connectionstring;
            _proCateDao = new ProductCategoryDao(connectionstring);
            _prodCategSet = new ProductCategorySetDao(connectionstring);
            _prodPromoDao = new ProdPromoDao(connectionstring);
            _promoAllDao = new PromoAllDao(connectionstring);
            _serialDao = new SerialDao(connectionstring);

        }
开发者ID:lxh2014,项目名称:gigade-net,代码行数:11,代码来源:PromoPairDao.cs

示例13: EdmContentMgr

 public EdmContentMgr(string connectionString)
 {
     _IEdmContentDao = new EdmContentDao(connectionString);
     _edmContentDao = new EdmContentDao(connectionString);
     _edmEmailDao = new EdmEmailDao(connectionString);
     _vipUserDao = new VipUserDao(connectionString);
     _usersDao = new UsersDao(connectionString);
     _accessMySql = DBFactory.getDBAccess(DBType.MySql, connectionString);
     _edmGroupEmailDao = new EdmGroupEmailDao(connectionString);
     conn = connectionString;
 }
开发者ID:lxh2014,项目名称:gigade-net,代码行数:11,代码来源:EdmContentMgr.cs

示例14: ProductSearchDao

 public ProductSearchDao(string connectionstring, string sphinxHost, string sphinxPort)
 {
     _accessMySql = DBFactory.getDBAccess(DBType.MySql, connectionstring);
     _sphinxHost = GetParameterCode(sphinxHost);
     _sphinxPort = 0;
      if (!string.IsNullOrEmpty(GetParameterCode(sphinxPort)))
      {
          _sphinxPort = Convert.ToInt32(GetParameterCode(sphinxPort));
      }
     
 }
开发者ID:lxh2014,项目名称:gigade-net,代码行数:11,代码来源:ProductSearchDao.cs

示例15: PromotionsAmountFareDao

 /// <summary>
 /// 有參構造函數
 /// </summary>
 /// <param name="connectionstring">數據庫連接字符串</param>
 public PromotionsAmountFareDao(string connectionstring)
 {
     _access = DBFactory.getDBAccess(DBType.MySql, connectionstring);
     this.connStr = connectionstring;
     _cateDao = new ProductCategoryDao(connectionstring);
     _prodCateSetDao = new ProductCategorySetDao(connectionstring);
     _prodPromoDao = new ProdPromoDao(connectionstring);
     _promoAllDao = new PromoAllDao(connectionstring);
     _promAmountReduceDao = new PromotionsAmountReduceDao(connectionstring);
     _usconDao = new UserConditionDao(connectionstring);
     _serialDao = new SerialDao(connectionstring);
 }
开发者ID:lxh2014,项目名称:gigade-net,代码行数:16,代码来源:PromotionsAmountFareDao.cs


注:本文中的IDBAccess类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。