/// <summary> /// Executes the specified command text against the database connection of the context and builds an IDataReader. Make sure you close the data reader after finishing the work. /// </summary> public IDataReader ExecuteReader(string command, CommandType commandType, params IDataParameter[] @params) { using (new DatabaseContext(ConnectionString)) { return(DataAccessor <TConnection, TDataAdapter> .ExecuteReader(command, commandType, @params)); } }
/// <summary> /// Executes the specified command text against the database connection of the context and builds an IDataReader. Make sure you close the data reader after finishing the work. /// </summary> public IDataReader ExecuteReader(string command, CommandType commandType, params IDataParameter[] @params) { using (new DatabaseContext(ConnectionString)) { System.Diagnostics.Trace.WriteLine(command); return(DataAccessor <TConnection, TDataAdapter> .ExecuteReader(command, commandType, @params)); } }