Skip to content

ListRequestHandler<TRow,TListRequest,TListResponse>.CaptureQuery method

Builds the query this handler would execute for the request, without executing it. The request is validated, and the query is prepared and filtered by the handler and its behaviors as usual, with ExecutionMode set to QueryCapture. The query has no key order, sort, paging or total count, as it is meant to be used as a source of another query. Anything the handler or its behaviors would do after the query is executed, e.g. in ProcessEntity, OnAfterExecuteQuery or OnReturn, does not happen.

public SqlQuery CaptureQuery(IDbConnection connection, TListRequest request)
parameter description
connection Connection, which the handler and its behaviors may use to run their own queries while building the query
request Request

Return Value

The query

See Also