Database.GetLastInsertId Method

Definition

Returns the identity column of the most recently inserted row.

public dynamic GetLastInsertId ();
member this.GetLastInsertId : unit -> obj
Public Function GetLastInsertId () As Object

Returns

The ID of the most recently inserted row.

Applies to