Dynamicweb 8 Documentation
GetAddedIdentityKey(DataRow,IDbConnection,Int32) Method

The datarow to update.
The connection used to update the datarow.
Index of the column with the primary ID.
The function returns the identity of the last added row to the database
Syntax
'Declaration
 
Public Overloads Shared Function GetAddedIdentityKey( _ 
   ByRef row As DataRow, _ 
   ByRef connection As IDbConnection, _ 
   ByVal index As Integer _ 
) As Integer
public static int GetAddedIdentityKey( 
   ref DataRow row,
   ref IDbConnection connection,
   int index 
)

Parameters

row
The datarow to update.
connection
The connection used to update the datarow.
index
Index of the column with the primary ID.

Return Value

The ID of the updated database row is returned as an integer.
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

Database Class
Database Members
Overload List

Send Feedback