Loads specified number of entities of type EntityType, filtered by criteria 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,
	QueryCriteria criteria
)
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), _
	criteria As QueryCriteria _
) 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).
criteria
Type: Aspectize.Core..::..QueryCriteria
The critiria to meet.

Type Parameters

EntityType
Type of Entity to load

Return Value

List of EntityType loaded by the queries

See Also