Reservoir Interface
Retrieves the result of the query.
C#
public interface Reservoir : IDisposable
- Derived
- Implements
Methods
Read() |
Advances to the next row in the result set. |
New |
Creates an instance with the current row. |
New |
Creates new instances with the current and susequent rows. |
Methods Detail
Read()
Advances to the next row in the result set.
C#
bool Read()
Returns
true
if there are more rows; otherwise, false
.
NewInstance<T>()
Creates an instance with the current row.
C#
T NewInstance<T>()
Type Parameters
- T
The type of the instance to be created.
Returns
T
The new instance.
NewInstances<T>()
Creates new instances with the current and susequent rows.
C#
IEnumerable<T> NewInstances<T>()
Type Parameters
- T
The type of the instances to be created.
Returns
The new instances.