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