Knight Data Access Layer
GetMaxPrimaryKey Method (BaseDatabaseProvider)




KellermanSoftware.NetDataAccessLayer Namespace > BaseDatabaseProvider Class : GetMaxPrimaryKey Method
The name of the table
The name of the primary key in the table
Get the maximum value for the primary key
Syntax
Public Overridable Function GetMaxPrimaryKey( _
   ByVal tableName As String, _
   ByVal primaryKey As String _
) As Long
Dim instance As BaseDatabaseProvider
Dim tableName As String
Dim primaryKey As String
Dim value As Long
 
value = instance.GetMaxPrimaryKey(tableName, primaryKey)
public virtual long GetMaxPrimaryKey( 
   string tableName,
   string primaryKey
)
public: virtual long GetMaxPrimaryKey( 
   string* tableName,
   string* primaryKey
) 
public:
virtual int64 GetMaxPrimaryKey( 
   String^ tableName,
   String^ primaryKey
) 

Parameters

tableName
The name of the table
primaryKey
The name of the primary key in the table
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

BaseDatabaseProvider Class
BaseDatabaseProvider Members