Ejemplo n.º 1
0
 static IEnumerable <T> SelectHelper <T>(IDbConnection connection, string query, object parameter, CommandType commandType)
     where T : new()
 {
     using (var exec = new DbExecutor(connection))
     {
         foreach (var item in exec.Select <T>(query, parameter, commandType))
         {
             yield return(item);
         }
     }
 }