Exemplo n.º 1
0
 /// <summary>
 /// 数据控件初始化
 /// </summary>
 /// <param name="scon">数据连接字符</param>
 public OracleDataSource(DaoStruct daoStruct)
 {
     this.daoStruct = daoStruct;
     DBConnectionPool.initConnection(oracleConnection, daoStruct);
     oracleConnection         = (OracleConnection)DBConnectionPool.GetConnection(daoStruct);
     oracleCommand            = new OracleCommand();
     oracleCommand.Connection = oracleConnection;
 }
Exemplo n.º 2
0
 public SqlDataSource(DaoStruct daoStruct)
 {
     this.daoStruct = daoStruct;
     DBConnectionPool.initConnection(sqlConnection, daoStruct);
     sqlConnection         = (SqlConnection)DBConnectionPool.GetConnection(daoStruct);
     sqlCommand            = new SqlCommand();
     sqlCommand.Connection = sqlConnection;
 }
Exemplo n.º 3
0
 public AccessDataSource(DaoStruct daoStruct)
 {
     this.daoStruct = daoStruct;
     DBConnectionPool.initConnection(sqlConnection, daoStruct);
     sqlConnection         = (OleDbConnection)DBConnectionPool.GetConnection(daoStruct);
     sqlCommand            = new OleDbCommand();
     sqlCommand.Connection = sqlConnection;
 }
Exemplo n.º 4
0
 /// <summary>
 /// 释放数据连接资源
 /// </summary>
 public void DisposeConn()
 {
     DBConnectionPool.disposeConnection(daoStruct);
 }