SysLogEx.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using SqlSugar;
  2. using System.ComponentModel.DataAnnotations;
  3. namespace Admin.NET.Core
  4. {
  5. /// <summary>
  6. /// 系统异常日志表
  7. /// </summary>
  8. [SugarTable("sys_log_ex", "系统异常日志表")]
  9. [SqlSugarEntity]
  10. public class SysLogEx : EntityBase
  11. {
  12. /// <summary>
  13. /// 类名
  14. /// </summary>
  15. [SugarColumn(ColumnDescription = "类名", Length = 100)]
  16. [MaxLength(100)]
  17. public string ClassName { get; set; }
  18. /// <summary>
  19. /// 方法名
  20. /// </summary>
  21. [SugarColumn(ColumnDescription = "方法名", Length = 100)]
  22. [MaxLength(100)]
  23. public string MethodName { get; set; }
  24. /// <summary>
  25. /// 异常名称
  26. /// </summary>
  27. [SugarColumn(ColumnDescription = "异常名称")]
  28. public string ExceptionName { get; set; }
  29. /// <summary>
  30. /// 异常信息
  31. /// </summary>
  32. [SugarColumn(ColumnDescription = "异常信息")]
  33. public string ExceptionMsg { get; set; }
  34. /// <summary>
  35. /// 异常源
  36. /// </summary>
  37. [SugarColumn(ColumnDescription = "异常源")]
  38. public string ExceptionSource { get; set; }
  39. /// <summary>
  40. /// 堆栈信息
  41. /// </summary>
  42. [SugarColumn(ColumnDescription = "堆栈信息")]
  43. public string StackTrace { get; set; }
  44. /// <summary>
  45. /// 参数对象
  46. /// </summary>
  47. [SugarColumn(ColumnDescription = "参数对象")]
  48. public string ParamsObj { get; set; }
  49. /// <summary>
  50. /// 账号名称
  51. /// </summary>
  52. [SugarColumn(ColumnDescription = "账号名称", Length = 20)]
  53. [MaxLength(20)]
  54. public string UserName { get; set; }
  55. /// <summary>
  56. /// 真实姓名
  57. /// </summary>
  58. [SugarColumn(ColumnDescription = "真实姓名", Length = 20)]
  59. [MaxLength(20)]
  60. public string RealName { get; set; }
  61. }
  62. }