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




KellermanSoftware.NetDataAccessLayer Namespace > ObjectCrud Class > LoadOne Method : LoadOne<T>(String) Method
Generic object type
The where clause to use as the filter
Load the first record matching the where clause
Syntax
Public Overloads Function LoadOne(Of T As {Class, New})( _
   ByVal whereClause As String _
) As T
Dim instance As ObjectCrud
Dim whereClause As String
Dim value As T
 
value = instance.LoadOne(Of T)(whereClause)
public T LoadOne<T>( 
   string whereClause
)
where T: class, new()
public: T* LoadOne<T>( 
   string* whereClause
) 
where T: ref class, gcnew()
public:
T^ LoadOnegeneric<typename T>
( 
   String^ whereClause
) 
where T: ref class, gcnew()

Parameters

whereClause
The where clause to use as the filter

Type Parameters

T
Generic object 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