コード例 #1
0
        public virtual OciGlue CreateConnection(OracleConnectionInfo info)
        {
            OciGlue oci;

            oci = new OciGlue();
            oci.CreateConnection(info);
            return(oci);
        }
コード例 #2
0
        public override void Open()
        {
            if (State == ConnectionState.Open)
            {
                return;
            }

            PersistSecurityInfo();

            if (!pooling || conInfo.SetNewPassword == true)
            {
                oci = new OciGlue();
                oci.CreateConnection(conInfo);
            }
            else
            {
                pool = pools.GetConnectionPool(conInfo, minPoolSize, maxPoolSize);
                oci  = pool.GetConnection();
            }
            state = ConnectionState.Open;

            CreateStateChange(ConnectionState.Closed, ConnectionState.Open);
        }