[]
        
(Showing Draft Content)

C1.Data.ClientView-1.Paging

Paging Method

Paging<TKey>(Expression<Func<T, TKey>>, int)

Applies paging to this client view.

Declaration
public PagingView<T> Paging<TKey>(Expression<Func<T, TKey>> sortKeySelector, int pageSize)
Parameters
Type Name Description
Expression<Func<T, TKey>> sortKeySelector

A function specifying a sort key.

int pageSize

A value for the PageSize property, the number of items to load in a page.

Returns
Type Description
PagingView<T>

A paged client view.

Type Parameters
Name Description
TKey

The type of the sort key.

Remarks

Sorting is required, paging entities is impossible without sort.

Paging<TKey>(Expression<Func<T, TKey>>, bool, int)

Applies paging to this client view.

Declaration
public PagingView<T> Paging<TKey>(Expression<Func<T, TKey>> sortKeySelector, bool ascending, int pageSize)
Parameters
Type Name Description
Expression<Func<T, TKey>> sortKeySelector

A function specifying a sort key.

bool ascending

A boolean value indicating whether sorting must be performed in the ascending order (descending, if false).

int pageSize

A value for the PageSize property, the number of items to load in a page.

Returns
Type Description
PagingView<T>

A paged client view.

Type Parameters
Name Description
TKey

The type of the sort key.

Remarks

Sorting is required, paging entities is impossible without sort.