SQL Server · Types · Procedures and functions
ArxPagingParameters
Definition
- Namespace
ARX.SDK.Query- Package
ARX.SDK
public sealed class ArxPagingParametersThe arguments of a routine that pages itself (way 1): ARX fills them from PageInfo, and reads the total from TotalRecordCount (an OUT parameter of a procedure, a result column of a function).
Constructor
No public constructor: create one with:
ArxPagingParameters.PageNumber(string pageNumber, string pageSize, string? totalRecordCount = null)The routine takes a page number (from 1) and a page size:
PageNumber("p_page", "p_page_size", totalRecordCount: "p_total").Parameter Type Description pageNumberstringThe routine's page number parameter. pageSizestringThe routine's page size parameter. totalRecordCountstring?= nullWhere the routine returns the total: an OUT parameter of a procedure, or a result column of a function. Null when it doesn't. ArxPagingParameters.OffsetLimit(string offset, string limit, string? totalRecordCount = null)The routine takes an offset and a limit:
OffsetLimit("p_offset", "p_limit", totalRecordCount: "p_total").Parameter Type Description offsetstringThe routine's offset parameter (rows to skip). limitstringThe routine's limit parameter (rows to return). totalRecordCountstring?= nullWhere the routine returns the total: an OUT parameter of a procedure, or a result column of a function. Null when it doesn't.
Properties
ArxPagingParametersStyle Style { get; }Whether the routine takes a page number and size, or an offset and a limit.
string First { get; }The page number's parameter (PageNumber style) or the offset's (OffsetLimit style).
string Second { get; }The page size's parameter (PageNumber style) or the limit's (OffsetLimit style).
string? TotalRecordCount { get; }Where the routine returns the total: a procedure's OUT parameter (ARX declares it as
bigintif it isn't), or a function's result column. Null when the routine returns none.
Usage
A line from a verified sample; the full, runnable code is on its page.
procedure.PagingParameters = ArxPagingParameters.PageNumber("p_page", "p_page_size", totalRecordCount: "p_total");Used in: