/* *代码由框架生成,任何更改都可能导致被代码生成器覆盖 *如果数据库字段发生变化,请在代码生器重新生成此Model */ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; using VOL.Entity.SystemModels; namespace VOL.Entity.DomainModels { [Entity(TableCnName = "系统日志",TableName = "Sys_Log_Core")] [Table("Sys_Log_Core")] public class Sys_Log:BaseEntity { /// /// /// [Key] [Display(Name ="Id")] [Column(TypeName="int")] [Required(AllowEmptyStrings=false)] public int Id { get; set; } /// ///开始时间 /// [Display(Name ="开始时间")] [Column(TypeName="datetime")] public DateTime? BeginDate { get; set; } /// ///用户名称 /// [Display(Name ="用户名称")] [Column(TypeName="nvarchar(max)")] public string UserName { get; set; } /// ///请求地址 /// [Display(Name ="请求地址")] [Column(TypeName="nvarchar(max)")] public string Url { get; set; } /// ///日志类型 /// [Display(Name ="日志类型")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] public string LogType { get; set; } /// ///响应状态 /// [Display(Name ="响应状态")] [Column(TypeName="int")] public int? Success { get; set; } /// ///时长 /// [Display(Name ="时长")] [Column(TypeName="int")] public int? ElapsedTime { get; set; } /// ///请求参数 /// [Display(Name ="请求参数")] [Column(TypeName="nvarchar(max)")] public string RequestParameter { get; set; } /// ///响应参数 /// [Display(Name ="响应参数")] [Column(TypeName="nvarchar(max)")] public string ResponseParameter { get; set; } /// ///异常信息 /// [Display(Name ="异常信息")] [Column(TypeName="nvarchar(max)")] public string ExceptionInfo { get; set; } /// ///用户IP /// [Display(Name ="用户IP")] [MaxLength(200)] [Column(TypeName="nvarchar(200)")] public string UserIP { get; set; } /// ///服务器IP /// [Display(Name ="服务器IP")] [MaxLength(200)] [Column(TypeName="nvarchar(200)")] public string ServiceIP { get; set; } /// ///浏览器类型 /// [Display(Name ="浏览器类型")] [MaxLength(400)] [Column(TypeName="nvarchar(400)")] public string BrowserType { get; set; } /// ///用户ID /// [Display(Name ="用户ID")] [MaxLength(50)] [Column(TypeName="varchar(50)")] public string User_Id { get; set; } /// ///角色ID /// [Display(Name ="角色ID")] [MaxLength(50)] [Column(TypeName="varchar(50)")] public string Role_Id { get; set; } /// ///结束时间 /// [Display(Name ="结束时间")] [Column(TypeName="datetime")] public DateTime? EndDate { get; set; } /// ///是否公开 用于给客户查看的 /// [Display(Name = "是否公开")] [Column(TypeName = "bit")] public bool? PubType { get; set; } } }