/// <summary> /// 根据数据库连接字符串和数据库类型,构造数据库操作类 /// </summary> /// <param name="connectionString">数据库连接字符串</param> /// <param name="dbType">dbType分为:oracle和sqlserver</param> public OLEDB_DBOperator(string connectionString, string dbType) { this.conn = new OLEDB_Oracle_SQLServer(); this.conn.Connect(connectionString, dbType); this.DBType = this.conn.DBType; }
} // 连接的OLEDB数据库类型 public OLEDB_DBOperator(string configFilePath) { this.conn = new OLEDB_Oracle_SQLServer(); this.conn.Connect(configFilePath); this.DBType = this.conn.DBType; }