Table of Contents

Interface IDataQueryFormatter

Namespace
FluentCommand
Assembly
FluentCommand.dll

A interface for formatting an IDbCommand for logging

public interface IDataQueryFormatter

Methods

FormatCommand(IDbCommand, TimeSpan, Exception)

Formats the command for logging.

string FormatCommand(IDbCommand command, TimeSpan duration, Exception exception)

Parameters

command IDbCommand

The command to log.

duration TimeSpan

The execution duration.

exception Exception

The exception thrown when executing the command.

Returns

string

The command formatted as a string