/// <summary> /// Executes non query command. /// </summary> /// <param name="command">The command to be executed.</param> /// <param name="ct">The async cancellation token.</param> /// <returns>The return code returned by command execution.</returns> protected Task <int> ExecuteNonQueryAsync(TCommand command, CancellationToken ct) { if (CurrentTransaction != null) { return(CurrentTransaction.ExecuteNonQueryAsync(command, ct)); } else { return(InternalExecuteNonQueryAsync(command, ct)); } }