/// <summary> /// Executes the query, and returns the first column of the first row in the result set returned by the query. Additional columns or rows are ignored. /// Uses the default retry policy when executing the command. /// </summary> /// <param name="command">The command object that is required for the extension method declaration.</param> /// <returns> The first column of the first row in the result set, or a null reference if the result set is empty. Returns a maximum of 2033 characters.</returns> public static async Task <object> ExecuteScalarWithRetryAsync(this MySqlCommand command) { return(await command.ExecuteScalarWithRetryAsync(RetryManager.Instance.GetDefaultMySqlCommandRetryPolicy())); }