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




KellermanSoftware.NetDataAccessLayer Namespace > ObjectCrud Class > 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
Public 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 ObjectCrud
Dim sql As String
Dim parameters As Dictionary(Of String,Object)
Dim value As List(Of T)
 
value = instance.Load(Of T)(sql, parameters)
public List<T> Load<T>( 
   string sql,
   Dictionary<string,object> parameters
)
where T: class, new()
public: List<T*>* Load<T>( 
   string* sql,
   Dictionary<string*,Object*>* parameters
) 
where T: ref class, gcnew()
public:
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

ObjectCrud Class
ObjectCrud Members
Overload List