Method Read
- Namespace
- Open.Database.Extensions
- Assembly
- Open.Database.Extensions.Core.dll
Read(Action<IEnumerable<T>>)
Passes the rows of the table to the handler.
public void Read(Action<IEnumerable<T>> handler)
Parameters
handlerAction<IEnumerable<T>>Receives the rows, which are read as it enumerates them.
Read<TResult>(Func<IEnumerable<T>, TResult>)
Passes the rows of the table to the handler and returns its result.
public TResult Read<TResult>(Func<IEnumerable<T>, TResult> handler)
Parameters
handlerFunc<IEnumerable<T>, TResult>Receives the rows, which are read as it enumerates them.
Returns
- TResult
The value the handler returns.
Type Parameters
TResultThe type the handler returns.