Exemple #1
0
 public static TValue ReadValue <TValue>(this IDataReader dr, int bufferSize = 655360)
 {
     using (var ebr = new ExaDataReader <TValue>(bufferSize))
     {
         return(ebr.Read(dr));
     }
 }
Exemple #2
0
 public static IEnumerable <TValue> EnumerateValues <TValue>(this IDataReader dr, int bufferSize = 655360)
 {
     using (var ebr = new ExaDataReader <IEnumerable <TValue> >(bufferSize))
     {
         var enumerable = ebr.Read(dr);
         if (enumerable != null)
         {
             foreach (var value in enumerable)
             {
                 yield return(value);
             }
         }
     }
 }