# Class PaginationFilterExtensions

Namespace
  adas_core.Domain.Models.Filter

Assembly
  adas-core.Domain.dll

Provides static extension methods for working with pagination filter objects.

    public static class PaginationFilterExtensions

Inheritance
  object
  PaginationFilterExtensions

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

## Methods

### ApplyPagination<T>(IQueryable<T>, PaginationFilter?)

Applies pagination to the source queryable using the provided PaginationFilter, skipping the appropriate number of records and taking the requested page size. If the filter is `null` or contains an invalid page number (less than 0) or page size (not greater than 0), the original queryable is returned unchanged.

    public static IQueryable<T> ApplyPagination<T>(this IQueryable<T> queryable, PaginationFilter? filter)

#### Parameters

`queryable` IQueryable<T>

  The source IQueryable<T> to paginate.

`filter` PaginationFilter

  The pagination settings containing the page number and page size. If `null` or invalid, no pagination is applied.

#### Returns

IQueryable<T>

  The paginated IQueryable<T>, or the original queryable when the filter is `null` or contains invalid values.

#### Type Parameters

`T`