protected override object GetMetricsValue(OAEventLog eventLog)
        {
            string query = string.IsNullOrEmpty(eventLog.Query)
                ? eventLog.Information
                : eventLog.Query;

            return string.Format("{0}\n{1}\nConnection #{2}\n{3}\n", query, eventLog.Params, eventLog.ConnectionId, eventLog.StackTrace);
        }
 public void Convert(TabSection section, OAEventLog eventLog)
 {
     section.AddRow()
         .Column(eventLog.DisplayName)
         .Column(this.GetMetricsValue(eventLog))
            .Column(BaseMetricsConverter.GetDurationMetricValue(eventLog))
            .Column(eventLog.Timestamp.ToString("HH:mm:ss.fff"));
 }
        private static string GetDurationMetricValue(OAEventLog eventLog)
        {
            int milliseconds = eventLog.Duration.Milliseconds;

            return milliseconds == 0 ? null : string.Format("{0}ms", milliseconds);
        }
 protected virtual object GetMetricsValue(OAEventLog eventLog)
 {
     return null;
 }
 protected override object GetMetricsValue(OAEventLog eventLog)
 {
     return string.Format("{0}\n{1}", eventLog.Information, eventLog.StackTrace);
 }