MySqlConnector


MySqlCommand.LastInsertedId property

Holds the first automatically-generated ID for a value inserted in an AUTO_INCREMENT column in the last statement.

public long LastInsertedId { get; }

Remarks

See LAST_INSERT_ID() for more information.

See Also