Database::GetLastInsertId Method

Returns the identity column of the most recently inserted row.

Namespace:  WebMatrix.Data
Assembly:  WebMatrix.Data (in WebMatrix.Data.dll)

public:
Object^ GetLastInsertId()

Return Value

Type: System::Object
The ID of the most recently inserted row.

  • Medium trust for the immediate caller. This member can be used by partially trusted code.
Show: