MappedPagedList<T> Class

Summary

MappedPagedList. Implements the Marten.Pagination.IPagedList`1
Assembly
Rocket.Surgery.Extensions.Marten.dll
Namespace
Rocket.Surgery.Extensions.Marten
Interfaces
  • IPagedList<T>
  • IEnumerable<T>
  • IEnumerable
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IPagedList<T>"] Type-.->Interface1["IEnumerable<T>"] Type-.->Interface2["IEnumerable"] Type["MappedPagedList<T>"] class Type type-node

Syntax

public class MappedPagedList<T> : IPagedList<T>, IEnumerable<T>, IEnumerable

Attributes

Type Description
NullableContextAttribute
NullableAttribute
DefaultMemberAttribute
JsonObjectAttribute

Type Parameters

Name Description
T

Constructors

Name Summary
MappedPagedList(IPagedList<object>, Func<object, T>) Initializes a new instance of the MappedPagedList<T> class.

Properties

Name Value Summary
Count long
Return the number of records in the paged query result
FirstItemOnPage long
Gets one-based index of first item in current page
HasNextPage bool
Gets a value indicating whether there is next page
HasPreviousPage bool
Gets a value indicating whether there is a previous page
IsFirstPage bool
Gets a value indicating whether the current page is first page
IsLastPage bool
Gets a value indicating whether the current page is last page
LastItemOnPage long
Gets one-based index of last item in current page
PageCount long
Gets number of pages
PageNumber long
Gets current page number
PageSize long
Gets page size
this[int] T
Gets the at the specified index.
TotalItemCount long
Gets the total number records
Values IEnumerable<T>
Gets the values.

Methods

Name Value Summary
GetEnumerator() IEnumerator<T>
Returns an enumerator that iterates through the collection.

Extension Methods

See Also

  • Marten.Pagination.IPagedList`1