Ninja Database Pro
LoadPageWithChildren<T> Method



KellermanSoftware.NinjaDatabasePro Namespace > NinjaDbPro Class : LoadPageWithChildren<T> Method
The object type
The page number, starting at 1
The number of items to display in the page
If true the page is loaded in ascending order
Load a page of objects with all children populated, ordered by the primary key
Syntax
Public Function LoadPageWithChildren(Of T As {Class, New})( _
   ByVal pageNumber As Integer, _
   ByVal pageSize As Integer, _
   ByVal ascending As Boolean _
) As List(Of T)
Dim instance As NinjaDbPro
Dim pageNumber As Integer
Dim pageSize As Integer
Dim ascending As Boolean
Dim value As List(Of T)
 
value = instance.LoadPageWithChildren(Of T)(pageNumber, pageSize, ascending)
public List<T> LoadPageWithChildren<T>( 
   int pageNumber,
   int pageSize,
   bool ascending
)
where T: class, new()
public:
List<T^>^ LoadPageWithChildrengeneric<typename T>
( 
   int pageNumber,
   int pageSize,
   bool ascending
) 
where T: ref class, gcnew()

Parameters

pageNumber
The page number, starting at 1
pageSize
The number of items to display in the page
ascending
If true the page is loaded in ascending order

Type Parameters

T
The object type

Return Value

A list of items for the 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

NinjaDbPro Class
NinjaDbPro Members