示例#1
0
    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);
    }
示例#2
0
 public void QueryExecution(string SQLQuery)
 {
     using (var conn = _connectionCreator.CreateConnection(dbName, true, true)) {
         if (conn != null)
         {