You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.4 KiB

4 years ago
  1. using Apewer;
  2. using Apewer.Source;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Text;
  6. namespace Apewer.Network
  7. {
  8. /// <summary>邮件记录。</summary>
  9. [Table("_mail_record")]
  10. [Serializable]
  11. public class MailRecord : Record
  12. {
  13. [NonSerialized]
  14. private TextSet _ts = new TextSet(false);
  15. [NonSerialized]
  16. private Exception _exception = null;
  17. /// <summary></summary>
  18. [Column]
  19. public string Action { get { return _ts["Action"]; } set { _ts["Action"] = value; } }
  20. /// <summary></summary>
  21. [Column]
  22. public string Status { get { return _ts["Status"]; } set { _ts["Status"] = value; } }
  23. /// <summary></summary>
  24. [Column(ColumnType.NText)]
  25. public string Error { get { return _ts["Error"]; } set { _ts["Error"] = value; } }
  26. /// <summary></summary>
  27. [Column(ColumnType.NText)]
  28. public string Client { get { return _ts["Client"]; } set { _ts["Client"] = value; } }
  29. /// <summary></summary>
  30. [Column(ColumnType.NText)]
  31. public string Message { get { return _ts["Message"]; } set { _ts["Message"] = value; } }
  32. /// <summary></summary>
  33. public Exception Exception { get { return _exception; } set { _exception = value; } }
  34. /// <summary></summary>
  35. public new virtual string ToString()
  36. {
  37. return Json.From(this).ToString();
  38. }
  39. }
  40. }