Exemple #1
0
 /// <summary>
 /// 构造器,该构造函数默认使用SqlServer数据源
 /// </summary>
 /// <param name="conStrBuilder">连接字符串对象</param>
 public DbManager(BaseConStrBuilder conStrBuilder) : this(conStrBuilder.ToString(), System.Data.SqlClient.SqlClientFactory.Instance)
 {
 }
Exemple #2
0
 /// <summary>
 /// 更改连接字符串
 /// </summary>
 /// <param name="stringBuilder">连接字符串对象</param>
 public void ChangeConnectionStr(BaseConStrBuilder stringBuilder)
 {
     ChangeConnectionStr(stringBuilder.ToString());
 }
Exemple #3
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="conStrBuilder">连接字符串对象</param>
 /// <param name="dbProvider">用于创建提供程序对数据源类的实现的实例</param>
 public DbManager(BaseConStrBuilder conStrBuilder, DbProviderFactory dbProvider) : this(conStrBuilder.ToString(), dbProvider)
 {
 }
Exemple #4
0
 /// <summary>
 /// 构造器
 /// </summary>
 /// <param name="conStrBuilder">连接字符串对象</param>
 public DbContext(BaseConStrBuilder conStrBuilder) : this(conStrBuilder.ToString())
 {
 }