Knight Data Access Layer
LoadPage Method (BaseActiveRecord<T>)




KellermanSoftware.NetDataAccessLayer Namespace > BaseActiveRecord<T> Class : LoadPage Method
Order by SQL Clause
The page number starting at 1
The number of records per page
Load a page of records that are ordered
Syntax
Public Function LoadPage( _
   ByVal orderBy As String, _
   ByVal page As Integer, _
   ByVal pageSize As Integer _
) As List(Of T)
Dim instance As BaseActiveRecord(Of T)
Dim orderBy As String
Dim page As Integer
Dim pageSize As Integer
Dim value As List(Of T)
 
value = instance.LoadPage(orderBy, page, pageSize)
public List<T> LoadPage( 
   string orderBy,
   int page,
   int pageSize
)
public: List<T*>* LoadPage( 
   string* orderBy,
   int page,
   int pageSize
) 
public:
List<T^>^ LoadPage( 
   String^ orderBy,
   int page,
   int pageSize
) 

Parameters

orderBy
Order by SQL Clause
page
The page number starting at 1
pageSize
The number of records per page
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

BaseActiveRecord<T> Class
BaseActiveRecord<T> Members