/// <summary> /// 释放一个连接 /// </summary> /// <param name="tnOraConn"></param> public static void CloseOraConnection(OracleConnection tnOraConn) { DBAdmin.FreeConnect(tnOraConn); }
/// <summary> /// 获得一个连接 /// </summary> /// <param name="tsConnectId"></param> /// <param name="tnOraConnIndex"></param> /// <returns></returns> public static OracleConnection GetOraConnection(String tsConnectId) { return(DBAdmin.GetConnection(tsConnectId)); }
/// <summary> /// 建立连接 /// </summary> public void Open(String dbStr) { conn = DBAdmin.GetConnection(dbStr); }
/// <summary> /// 关闭连接 /// </summary> public void Close() { DBAdmin.FreeConnect(conn); }
/// <summary> /// 建立连接 /// </summary> public void Open() { conn = DBAdmin.GetConnection("DB"); }