示例#1
0
 /// <summary>
 /// Increments the result set enumerator and initializes the row enumerator
 /// </summary>
 /// <returns></returns>
 public override bool NextResult()
 {
     if (Data == null || !ResultSetEnumerator.MoveNext())
     {
         return(false);
     }
     RowEnumerator = ResultSetEnumerator.Current.GetEnumerator();
     return(true);
 }
示例#2
0
 public TestDbDataReader(IEnumerable <TestResultSet> data)
 {
     Data = data;
     if (Data != null)
     {
         ResultSetEnumerator = Data.GetEnumerator();
         ResultSetEnumerator.MoveNext();
     }
 }
示例#3
0
 public TestDbDataReader(IEnumerable <TestResultSet> data, bool throwOnRead)
 {
     ThrowOnRead = throwOnRead;
     Data        = data;
     if (Data != null)
     {
         ResultSetEnumerator = Data.GetEnumerator();
         ResultSetEnumerator.MoveNext();
     }
 }