Knight Data Access Layer
GetMaxPrimaryKey<T> Method (ObjectCrud)




KellermanSoftware.NetDataAccessLayer Namespace > ObjectCrud Class : GetMaxPrimaryKey<T> Method
Generic class type
Get the maximum for the primary key for an object type.
Syntax
Public Function GetMaxPrimaryKey(Of T As {Class, New})() As Long
Dim instance As ObjectCrud
Dim value As Long
 
value = instance.GetMaxPrimaryKey(Of T)()
public long GetMaxPrimaryKey<T>()
where T: class, new()
public: long GetMaxPrimaryKey<T>(); 
where T: ref class, gcnew()
public:
int64 GetMaxPrimaryKeygeneric<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