/// <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); }
public TestDbDataReader(IEnumerable <TestResultSet> data) { Data = data; if (Data != null) { ResultSetEnumerator = Data.GetEnumerator(); ResultSetEnumerator.MoveNext(); } }
public TestDbDataReader(IEnumerable <TestResultSet> data, bool throwOnRead) { ThrowOnRead = throwOnRead; Data = data; if (Data != null) { ResultSetEnumerator = Data.GetEnumerator(); ResultSetEnumerator.MoveNext(); } }