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




KellermanSoftware.NetDataAccessLayer Namespace > IDataHelper Interface > LoadOne Method : LoadOne<T>(String,Dictionary<String,Object>) Method
Generic class type
The where clause
Parameters for the where clause
Load the first record in a table based on a where clause
Syntax
Overloads Function LoadOne(Of T As {Class, New})( _
   ByVal whereClause As String, _
   ByVal parameters As Dictionary(Of String,Object) _
) As T
Dim instance As IDataHelper
Dim whereClause As String
Dim parameters As Dictionary(Of String,Object)
Dim value As T
 
value = instance.LoadOne(Of T)(whereClause, parameters)
T LoadOne<T>( 
   string whereClause,
   Dictionary<string,object> parameters
)
where T: class, new()
T* LoadOne<T>( 
   string* whereClause,
   Dictionary<string*,Object*>* parameters
) 
where T: ref class, gcnew()
T^ LoadOnegeneric<typename T>
( 
   String^ whereClause,
   Dictionary<String^,Object^>^ parameters
) 
where T: ref class, gcnew()

Parameters

whereClause
The where clause
parameters
Parameters 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

IDataHelper Interface
IDataHelper Members
Overload List