EntitySqlHelper.ForEach method (1 of 2)
namespace: Serenity.Data assembly: Serenity.Net.Services
Executes the specified callback for all rows returned from executing the query.
public static int ForEach(this SqlQuery query, IDbConnection connection, Action callBack)
| parameter | description |
|---|---|
| query | The query. |
| connection | The connection. |
| callBack | The call back. |
Return Value
Number of returned results.
See Also
- class SqlQuery
- class EntitySqlHelper
EntitySqlHelper.ForEach method (2 of 2)
namespace: Serenity.Data assembly: Serenity.Net.Services
Executes the specified data reader callback for all rows returned from executing the query.
public static int ForEach(this SqlQuery query, IDbConnection connection,
Action<IDataReader> callback)
| parameter | description |
|---|---|
| query | The query. |
| connection | The connection. |
| callback | The call back. |
Return Value
Number of returned results
See Also
- class SqlQuery
- class EntitySqlHelper