Example #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;
        }
Example #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);
        }