本文整理汇总了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);
}
示例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];
}
示例3: VendorDao
public VendorDao(string connectionStr)
{
_dbAccess = DBFactory.getDBAccess(DBType.MySql, connectionStr);
connStr = connectionStr;
mysqlHelp = new Common.MySqlHelper(connectionStr);
_serialDao = new SerialDao(connectionStr);
}
示例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());
}
示例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;
}
示例6: DeliverMasterMgr
public DeliverMasterMgr(string connectionString)
{
connection = connectionString;
_ideliver = new DeliverMasterDao(connectionString);
_access = DBFactory.getDBAccess(DBType.MySql, connectionString);
}
示例7: ProductTempDao
public ProductTempDao(string connectStr)
{
_dbAccess = DBFactory.getDBAccess(DBType.MySql, connectStr);
this.strConn = connectStr;
reProductDao = new RecommendedProductAttributeDao(connectStr);
}
示例8: VipUserMgr
public VipUserMgr(string connStr)
{
_vipUserDao = new VipUserDao(connStr);
_usersDao = new UsersDao(connStr);
_dbAccess = DBFactory.getDBAccess(DBType.MySql, connStr);
conn = connStr;
}
示例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);
}
示例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);
}
}
示例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);
}
示例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);
}
示例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;
}
示例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));
}
}
示例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);
}