Ninja Database Pro
GetNextPrimaryKeyValue<T>() Method



KellermanSoftware.NinjaDatabasePro Namespace > NinjaDbPro Class : GetNextPrimaryKeyValue<T>() Method
Get the next primary key that will be inserted for a type
Syntax
Public Function GetNextPrimaryKeyValue(Of T As {Class, New})() As Long
Dim instance As NinjaDbPro
Dim value As Long
 
value = instance.GetNextPrimaryKeyValue(Of T)()
public long GetNextPrimaryKeyValue<T>()
where T: class, new()
public:
int64 GetNextPrimaryKeyValuegeneric<typename T>
(); 
where T: ref class, gcnew()

Type Parameters

T
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

NinjaDbPro Class
NinjaDbPro Members