예제 #1
0
 static IEnumerable <IDataRecord> ExecuteReaderHelper(IDbConnection connection, string query, object parameter, CommandType commandType, CommandBehavior commandBehavior)
 {
     using (var exec = new DbExecutor(connection))
     {
         foreach (var item in exec.ExecuteReader(query, parameter, commandType, commandBehavior))
         {
             yield return(item);
         }
     }
 }