Ejemplo n.º 1
0
 /// <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));
     }
 }
Ejemplo n.º 2
0
 /// <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));
     }
 }