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