Loads specified number of entities of type EntityType given a sort order and a page number.

Namespace: Aspectize.Core
Assembly: AspectizeDAL (in AspectizeDAL.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
List<EntityType> GetEntitiesByPage<EntityType>(
	int pageNumber,
	int rowsPerPage,
	IEnumerable<SortCriteria> sortCriterias
)
where EntityType : new(), Entity, IEntity, IDataWrapper
Visual Basic
Function GetEntitiesByPage(Of EntityType As {New, Entity, IEntity, IDataWrapper}) ( _
	pageNumber As Integer, _
	rowsPerPage As Integer, _
	sortCriterias As IEnumerable(Of SortCriteria) _
) As List(Of EntityType)

Parameters

pageNumber
Type: System..::..Int32
The given page number starting at 1.
rowsPerPage
Type: System..::..Int32
The specified number of entities.
sortCriterias
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'SortCriteria>)>)>
The given sort order (sequence of column name and direction).

Type Parameters

EntityType
Type of Entity to load

Return Value

List of EntityType loaded by the queries

See Also