Knight Data Access Layer
Load<T>(String,Dictionary<String,Object>) Method




KellermanSoftware.NetDataAccessLayer Namespace > IObjectCrud Interface > Load Method : Load<T>(String,Dictionary<String,Object>) Method
Generic class type
The SQL text to execute
The parameters to use for the where clause
Load the passed sql into a list of objects
Syntax
Overloads Function Load(Of T As {Class, New})( _
   ByVal sql As String, _
   ByVal parameters As Dictionary(Of String,Object) _
) As List(Of T)
Dim instance As IObjectCrud
Dim sql As String
Dim parameters As Dictionary(Of String,Object)
Dim value As List(Of T)
 
value = instance.Load(Of T)(sql, parameters)
List<T> Load<T>( 
   string sql,
   Dictionary<string,object> parameters
)
where T: class, new()
List<T*>* Load<T>( 
   string* sql,
   Dictionary<string*,Object*>* parameters
) 
where T: ref class, gcnew()
List<T^>^ Loadgeneric<typename T>
( 
   String^ sql,
   Dictionary<String^,Object^>^ parameters
) 
where T: ref class, gcnew()

Parameters

sql
The SQL text to execute
parameters
The parameters to use for the where clause

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

IObjectCrud Interface
IObjectCrud Members
Overload List