using SqlSugar;
namespace PMSWPF.Data.Entities;
///
/// 表示数据库中的NLog日志实体。
///
[SugarTable("nlog")]
public class DbNlog
{
///
/// 日志调用位置。
///
public string Callsite { get; set; }
///
/// 日志调用行号。
///
public int CallsiteLineNumber { get; set; }
///
/// 异常信息。
///
[SugarColumn(IsNullable = true, ColumnDataType = "text")]
public string Exception { get; set; }
///
/// 日志的唯一标识符。
///
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)] //数据库是自增才配自增
public int Id { get; set; }
///
/// 日志级别。
///
public string Level { get; set; }
///
/// 日志记录器名称。
///
public string Logger { get; set; }
///
/// 日志时间。
///
public DateTime LogTime { get; set; }
///
/// 日志消息内容。
///
public string Message { get; set; }
///
/// 线程ID。
///
public int ThreadID { get; set; }
///
/// 线程名称。
///
[SugarColumn(IsNullable = true)]
public string ThreadName { get; set; }
}