public string Collapse()
        {
            StringBuilder sb = new StringBuilder();

            try
            {
                sb.Append(Uid).Append("|");
                sb.Append(User).Append("|");
                if (Role.Count > 0)
                {
                    sb.Append(Role.Aggregate((roles, x) => roles + x + ",")).Remove(sb.Length - 1, 1).Append("|");
                }
                else
                {
                    sb.Append("|");
                }
                sb.Append(DateUtil.ToIsoDate(TimeStamp)).Append("|");
                sb.Append(EventId).Append("|");
                sb.Append(Id.ToShortID()).Append("|");
                sb.Append(Note).Append("|");
                sb.Append(Path).Append("|");
                sb.Append(Database);
            }
            catch (Exception e)
            {
                Log.Error("problem collapsing entry", e, this);
            }
            return(sb.ToString());
        }