/// <summary>
 ///
 /// </summary>
 /// <param name="command"></param>
 /// <param name="exception"></param>
 public AfterExecuteCommandEventArgs(
     LoggedDbCommandInfo command,
     Exception exception)
 {
     Command   = command;
     Exception = exception;
 }
 private static string ToString(LoggedDbCommandInfo command, long duration)
 {
     return
         ($"Executing command started in {StopwatchTimeSpan.ToString(duration, 3)} seconds.\r\ncommandId: {command.CommandId},connectionState: {command.ConnectionState},database: {command.Database},executionType: {command.ExecutionType},commandType: {command.CommandType},commandTimeout: {command.CommandTimeout}\r\ncommandText: {command.CommandText}\r\nparameters:\r\n{command.Parameters}");
 }