Show / Hide Table of Contents

Class PaginationExtensions

Adds some extension methods related to the Pagination functionality.

Inheritance
System.Object
PaginationExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Celerik.NetCore.Services
Assembly: cs.temp.dll.dll
Syntax
public static class PaginationExtensions

Methods

PaginateAsync<TItem>(IQueryable<TItem>, PaginationRequest)

Paginates this query according to request params.

Declaration
public static Task<PaginationResult<TItem>> PaginateAsync<TItem>(this IQueryable<TItem> query, PaginationRequest request)
Parameters
Type Name Description
IQueryable<TItem> query

Object against we are querying.

PaginationRequest request

Object with the request arguments.

Returns
Type Description
System.Threading.Tasks.Task<PaginationResult<TItem>>

The task object representing the asynchronous operation.

Type Parameters
Name Description
TItem

The entity type in the query collection.

In This Article
Back to top Generated by DocFX