/// <inheritDoc /> public override string GetLastInsertId(PDO pdo, string name) { var command = (MySqlCommand)pdo.GetCurrentCommand(); var lastid = (command != null) ? command.LastInsertedId : -1; return(lastid.ToString()); }
/// <inheritDoc /> public override string GetLastInsertId(PDO pdo, string name) { var command = pdo.GetCurrentCommand(); var lastid = command != null?MySqlExtensions.LastInsertedId(command) : -1; return(lastid.ToString()); }