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




KellermanSoftware.NetDataAccessLayer Namespace > ObjectCrud Class > LoadOne Method : LoadOne<T>(Object) Method
Generic class type
The primary key value to search for
Load a single record using the primary key
Syntax
Public Overloads Function LoadOne(Of T As {Class, New})( _
   ByVal primaryKeyValue As Object _
) As T
Dim instance As ObjectCrud
Dim primaryKeyValue As Object
Dim value As T
 
value = instance.LoadOne(Of T)(primaryKeyValue)
public T LoadOne<T>( 
   object primaryKeyValue
)
where T: class, new()
public: T* LoadOne<T>( 
   Object* primaryKeyValue
) 
where T: ref class, gcnew()
public:
T^ LoadOnegeneric<typename T>
( 
   Object^ primaryKeyValue
) 
where T: ref class, gcnew()

Parameters

primaryKeyValue
The primary key value to search for

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