Knight Data Access Layer
LoadFromSprocWithChildren<T>(String,IEnumerable<Object>) Method




KellermanSoftware.NetDataAccessLayer Namespace > DataHelper Class > LoadFromSprocWithChildren Method : LoadFromSprocWithChildren<T>(String,IEnumerable<Object>) Method
The name of the stored procedure
The parameters to pass to the stored procedure
Load a list of objects from a stored procedure with all children
Syntax
Public Overloads Function LoadFromSprocWithChildren(Of T As {Class, New})( _
   ByVal storedProcedureName As String, _
   ByVal nameValueParameters As IEnumerable(Of Object) _
) As List(Of T)
Dim instance As DataHelper
Dim storedProcedureName As String
Dim nameValueParameters As IEnumerable(Of Object)
Dim value As List(Of T)
 
value = instance.LoadFromSprocWithChildren(Of T)(storedProcedureName, nameValueParameters)
public List<T> LoadFromSprocWithChildren<T>( 
   string storedProcedureName,
   IEnumerable<object> nameValueParameters
)
where T: class, new()
public: List<T*>* LoadFromSprocWithChildren<T>( 
   string* storedProcedureName,
   IEnumerable<Object*>* nameValueParameters
) 
where T: ref class, gcnew()
public:
List<T^>^ LoadFromSprocWithChildrengeneric<typename T>
( 
   String^ storedProcedureName,
   IEnumerable<Object^>^ nameValueParameters
) 
where T: ref class, gcnew()

Parameters

storedProcedureName
The name of the stored procedure
nameValueParameters
The parameters to pass to the stored procedure

Type Parameters

T

Return Value

A list of objects
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