Class PageableResults<T>
Utility class that provides data paging for a result set
Implements
Inherited Members
Namespace: Benday.Common
Assembly: Benday.Common.dll
Syntax
public class PageableResults<T> : IPageableResults
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Improve this Doc View SourcePageableResults()
Declaration
public PageableResults()
Properties
| Improve this Doc View SourceCurrentPage
Index of the current page being displayed
Declaration
public int CurrentPage { get; set; }
Property Value
Type | Description |
---|---|
int |
ItemsPerPage
Number of items per page
Declaration
public int ItemsPerPage { get; set; }
Property Value
Type | Description |
---|---|
int |
PageCount
Number of pages in the results
Declaration
public int PageCount { get; set; }
Property Value
Type | Description |
---|---|
int |
PageValues
List of values in the current page
Declaration
public IList<T> PageValues { get; }
Property Value
Type | Description |
---|---|
IList<T> |
Results
The complete list of results wrapped for paging
Declaration
[JsonIgnore]
public IList<T> Results { get; }
Property Value
Type | Description |
---|---|
IList<T> |
TotalCount
Total number of items in the data source
Declaration
public int TotalCount { get; }
Property Value
Type | Description |
---|---|
int |
Methods
| Improve this Doc View SourceInitialize(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 |