Table of Contents

Class DataQueryFormatter

Namespace
FluentCommand
Assembly
FluentCommand.dll

A class to format an IDbCommand for logging

public class DataQueryFormatter : IDataQueryFormatter
Inheritance
DataQueryFormatter
Implements
Inherited Members

Constructors

DataQueryFormatter()

public DataQueryFormatter()

Methods

FormatCommand(IDbCommand, TimeSpan, Exception)

Formats the command for logging.

public 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

Exceptions

ArgumentNullException

command