Knight Data Access Layer
LoadFromSproc<T>(String) Method




KellermanSoftware.NetDataAccessLayer Namespace > ObjectCrud Class > LoadFromSproc Method : LoadFromSproc<T>(String) Method
Generic class type
The name of the stored procedure
Load a list of items from a stored procedure and automatically map to an object
Syntax
Public Overloads Function LoadFromSproc(Of T As {Class, New})( _
   ByVal storedProcedureName As String _
) As List(Of T)
Dim instance As ObjectCrud
Dim storedProcedureName As String
Dim value As List(Of T)
 
value = instance.LoadFromSproc(Of T)(storedProcedureName)
public List<T> LoadFromSproc<T>( 
   string storedProcedureName
)
where T: class, new()
public: List<T*>* LoadFromSproc<T>( 
   string* storedProcedureName
) 
where T: ref class, gcnew()
public:
List<T^>^ LoadFromSprocgeneric<typename T>
( 
   String^ storedProcedureName
) 
where T: ref class, gcnew()

Parameters

storedProcedureName
The name of the stored procedure

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

ObjectCrud Class
ObjectCrud Members
Overload List