using System.ComponentModel; using SqlSugar; namespace DS.Module.Core.Log; /// /// 异常访问日志 /// [global::SqlSugar.SugarTable("sys_log_exception")] public class SysLogException { /// /// ID /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] public int Id { get; set; } /// /// 类名称 /// public string ClassName { get; set; } /// /// 方法名称 /// public string MethodName { get; set; } /// /// 异常名称 /// [SugarColumn(ColumnDescription = "异常信息", IsNullable = true, ColumnDataType = StaticConfig.CodeFirst_BigString)] public string ExceptionName { get; set; } /// /// 异常信息 /// [SugarColumn(ColumnDescription = "异常信息", IsNullable = true, ColumnDataType=StaticConfig.CodeFirst_BigString)] public string ExceptionMsg { get; set; } /// /// 异常源 /// [SugarColumn(ColumnDescription = "异常源", IsNullable = true, ColumnDataType=StaticConfig.CodeFirst_BigString)] public string ExceptionSource { get; set; } /// /// 堆栈信息 /// [SugarColumn(ColumnDescription = "堆栈信息", IsNullable = true, ColumnDataType=StaticConfig.CodeFirst_BigString)] public string StackTrace { get; set; } /// /// 参数对象 /// [SugarColumn(ColumnDescription = "参数对象", IsNullable = true, ColumnDataType=StaticConfig.CodeFirst_BigString)] public string ParamsObj { get; set; } /// /// 创建时间 /// [Description("创建时间")] [SqlSugar.SugarColumn(IsOnlyIgnoreUpdate = true, ColumnDescription = "创建时间")] public DateTime CreateTime { get; set; } /// /// 创建人 /// [Description("创建人")] [SqlSugar.SugarColumn(IsOnlyIgnoreUpdate = true, IsNullable = true, ColumnDescription = "创建人")] public long CreateBy { get; set; } /// /// 租户id /// public long? TenantId { get; set; } }