Knight Data Access Layer
LoadOne<T>() Method




KellermanSoftware.NetDataAccessLayer Namespace > ObjectCrud Class > LoadOne Method : LoadOne<T>() Method
Generic class type
Load the first record in a table
Syntax
Public Overloads Function LoadOne(Of T As {Class, New})() As T
Dim instance As ObjectCrud
Dim value As T
 
value = instance.LoadOne(Of T)()
public T LoadOne<T>()
where T: class, new()
public: T* LoadOne<T>(); 
where T: ref class, gcnew()
public:
T^ LoadOnegeneric<typename T>
(); 
where T: ref class, gcnew()

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