Example #1
0
        internal void Init(string connectionString)
        {
            Guard.NotNullOrEmpty(connectionString, "connectionString");

            connectionPool = new OracleConnectionPool(connectionString);
            lock (connectionPoolDictioanry)
            {
                connectionPoolDictioanry[connectionString] = connectionPool;
            }
        }
Example #2
0
 public OracleConnection(OracleConnectionPool connectionPool)
     : base(connectionPool.Pop())
 {
     this.connectionPool = connectionPool;
 }