public ClassX() { _rsProfile = xxx; // Get the RSProfile object _dbConnectionCreator = new RSDatabaseConnectionCreator(_rsProfile); RSDatabaseNames databaseName = yyy; // get the RSDatabaseNames var useWindowsAuthentication = true; var testConnection = false; _sqlConnection = _dbConnectionCreator.CreateConnection(databaseName, useWindowsAuthentication, testConnection); }
public void QueryExecution(string SQLQuery) { using (var conn = _connectionCreator.CreateConnection(dbName, true, true)) { if (conn != null) {