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