コード例 #1
0
        private IConnectionString CreateConnectionString(ConnectionStringConfigurationElement connectionConfig)
        {
            var connectionString = connectionConfig.ConnectionString;
            var isCrypted = connectionConfig.Crypted;

            if (isCrypted)
            {
                var decrypter = new ConnectionStringDecrypter();
                connectionString = decrypter.Decrypt(connectionString);
            }

            var oracleConnectionString = new OracleConnectionString(connectionString);
            return oracleConnectionString;
        }
コード例 #2
0
        private IConnectionString CreateConnectionString(ConnectionStringConfigurationElement connectionConfig)
        {
            var connectionString = connectionConfig.ConnectionString;
            var isCrypted        = connectionConfig.Crypted;

            if (isCrypted)
            {
                var decrypter = new ConnectionStringDecrypter();
                connectionString = decrypter.Decrypt(connectionString);
            }

            var oracleConnectionString = new OracleConnectionString(connectionString);

            return(oracleConnectionString);
        }