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




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

IObjectCrud Interface
IObjectCrud Members