Knight Data Access Layer
GetMaxPrimaryKeySql Method




KellermanSoftware.NetDataAccessLayer Namespace > BaseDatabaseProvider Class : GetMaxPrimaryKeySql Method
The name of the table
The name of the primary key in the table
Get the SQL required to get the maximum value of the primary key
Syntax
Public Overridable Function GetMaxPrimaryKeySql( _
   ByVal tableName As String, _
   ByVal primaryKey As String _
) As String
Dim instance As BaseDatabaseProvider
Dim tableName As String
Dim primaryKey As String
Dim value As String
 
value = instance.GetMaxPrimaryKeySql(tableName, primaryKey)
public virtual string GetMaxPrimaryKeySql( 
   string tableName,
   string primaryKey
)
public: virtual string* GetMaxPrimaryKeySql( 
   string* tableName,
   string* primaryKey
) 
public:
virtual String^ GetMaxPrimaryKeySql( 
   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