Пример #1
0
 /// <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;
 }
Пример #2
0
        }                                           // 连接的OLEDB数据库类型

        public OLEDB_DBOperator(string configFilePath)
        {
            this.conn = new OLEDB_Oracle_SQLServer();
            this.conn.Connect(configFilePath);
            this.DBType = this.conn.DBType;
        }