Ejemplo n.º 1
0
 /**
  *  @ 默认构造函数
  *  @connectionString 数据库连接字符串
  * */
 protected SQLHelper(SQLDataBaseType dbType, string connectionString)
     : this(new SQLContext(dbType, connectionString))
 {
 }
Ejemplo n.º 2
0
 /**
  * @ 构造函数第一次重载,自动构造数据连接对象
  * @ dbType 数据库类型
  * @ connectionString 数据库连接字符串
  * */
 public SQLContext(SQLDataBaseType dbType, string connectionString)
 {
     this.dbType           = dbType;
     this.connectionString = connectionString;
 }