Table of Contents

Method GetEnumerator

Namespace
YndigoBlue.Velocity.Engine
Assembly
YndigoBlue.Velocity.dll

GetEnumerator()

Returns an enumerator that reads and yields one untyped Result per row from the underlying database reader, enabling foreach (Result row in reader).

public IEnumerator<Result> GetEnumerator()

Returns

IEnumerator<Result>

A forward-only, single-pass IEnumerator<T> backed by the live database reader.

Remarks

Rows are fetched lazily: each call to MoveNext() advances the underlying DbDataReader with a blocking Read() call, so no rows are read until enumeration begins. Because iteration reads directly from the connected reader, this enumerator can only be used once and must be consumed before the enclosing using (ResultReader ...) block exits.