Table of Contents

Class PagingParam

Namespace
Tlabs.Server.Model
Assembly
Tlabs.SrvBase.dll

Paging (query) parameter model to be bound via MVC model binding.

public class PagingParam
Inheritance
PagingParam
Derived
Inherited Members
Extension Methods

Constructors

PagingParam()

public PagingParam()

Fields

DEFAULT_LIMIT

Default page size.

public const int DEFAULT_LIMIT = 50

Field Value

int

DEFAULT_START

Default page start index.

public const int DEFAULT_START = 0

Field Value

int

Properties

limit

Page size.

public int? limit { get; set; }

Property Value

int?

page

Page number.

public int? page { get; set; }

Property Value

int?

start

Page start index.

public int? start { get; set; }

Property Value

int?

Methods

BindAsync(HttpContext)

Support custom binding.

public static ValueTask<PagingParam?> BindAsync(HttpContext httpCtx)

Parameters

httpCtx HttpContext

Returns

ValueTask<PagingParam>