Knight Data Access Layer
LoadWithChildren<T>(T) Method




KellermanSoftware.NetDataAccessLayer Namespace > DataHelper Class > LoadWithChildren Method : LoadWithChildren<T>(T) Method
Generic class type
Load all the records from a table and its children and parents into a class list
Syntax
Public Overloads Function LoadWithChildren(Of T As {Class, New})( _
   ByVal entity As T _
) As T
Dim instance As DataHelper
Dim entity As T
Dim value As T
 
value = instance.LoadWithChildren(Of T)(entity)
public T LoadWithChildren<T>( 
   T entity
)
where T: class, new()
public: T* LoadWithChildren<T>( 
   T* entity
) 
where T: ref class, gcnew()
public:
T^ LoadWithChildrengeneric<typename T>
( 
   T^ entity
) 
where T: ref class, gcnew()

Parameters

entity

Type Parameters

T
Generic class type
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

DataHelper Class
DataHelper Members
Overload List