EntitySqlHelper.ForFirst method (1 of 2)
namespace: Serenity.Data assembly: Serenity.Net.Entity
Executes the specified callback for the first result returned from executing the query.
public static bool ForFirst(this SqlQuery query, IDbConnection connection, Action callBack)
parameter | description |
---|---|
query | The query. |
connection | The connection. |
callBack | The call back. |
Return Value
True if any result returned.
See Also
- class SqlQuery
- class EntitySqlHelper
EntitySqlHelper.ForFirst method (2 of 2)
namespace: Serenity.Data assembly: Serenity.Net.Entity
Executes the specified reader callback for the first result returned from executing the query.
public static bool ForFirst(this SqlQuery query, IDbConnection connection, ReaderCallBack callBack)
parameter | description |
---|---|
query | The query. |
connection | The connection. |
callBack | The call back. |
See Also
- class SqlQuery
- delegate ReaderCallBack
- class EntitySqlHelper