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
IDbCommandThe command to log.
duration
TimeSpanThe execution duration.
exception
ExceptionThe exception thrown when executing the command.
Returns
- string
The command formatted as a string
Exceptions
- ArgumentNullException
command