Show / Hide Table of Contents

Class PageableResults<T>

Utility class that provides data paging for a result set

Inheritance
object
PageableResults<T>
Implements
IPageableResults
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Benday.Common
Assembly: Benday.Common.dll
Syntax
public class PageableResults<T> : IPageableResults
Type Parameters
Name Description
T

Constructors

| Edit this page View Source

PageableResults()

Declaration
public PageableResults()

Properties

| Edit this page View Source

CurrentPage

Index of the current page being displayed

Declaration
public int CurrentPage { get; set; }
Property Value
Type Description
int
| Edit this page View Source

ItemsPerPage

Number of items per page

Declaration
public int ItemsPerPage { get; set; }
Property Value
Type Description
int
| Edit this page View Source

PageCount

Number of pages in the results

Declaration
public int PageCount { get; set; }
Property Value
Type Description
int
| Edit this page View Source

PageValues

List of values in the current page

Declaration
public IList<T> PageValues { get; }
Property Value
Type Description
IList<T>
| Edit this page View Source

Results

The complete list of results wrapped for paging

Declaration
[JsonIgnore]
public IList<T> Results { get; }
Property Value
Type Description
IList<T>
| Edit this page View Source

TotalCount

Total number of items in the data source

Declaration
public int TotalCount { get; }
Property Value
Type Description
int

Methods

| Edit this page View Source

Initialize(IList<T>)

Sets the data result set that will be paged

Declaration
public void Initialize(IList<T> values)
Parameters
Type Name Description
IList<T> values

Result set to be paged

Exceptions
Type Condition
ArgumentNullException

Implements

IPageableResults
  • Edit this page
  • View Source
In this article
Back to top Copyright © www.benday.com | info@benday.com