Пример #1
0
 /// <summary>
 /// 获取数据库连接对象,并打开
 /// </summary>
 /// <param name="connectionKey">数据库连接关键字</param>
 /// <returns></returns>
 public OracleConnection GetOracleConnection(string connectionKey)
 {
     return(OracleDataProvider.CreateOracleConnection(OracleDataProvider.GetConnectionString(connectionKey)));
 }
Пример #2
0
 /// <summary>
 /// 获取数据库连接对象
 /// </summary>
 /// <returns></returns>
 public OracleConnection GetOracleConnection()
 {
     return(OracleDataProvider.CreateOracleConnection(OracleDataProvider.GetConnectionString("ContextOracleConnection")));
 }