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.
 
 
 
 
 

67 lines
1.8 KiB

using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using ChangkeTec.SDMS.Model.Attributes;
using ChangkeTec.SDMS.Model.Base;
using CK.SCP.Utils;
namespace ChangkeTec.SDMS.Model.DataCenterTables
{
[Description("登录日志表")]
public class TL_LOGIN : ITable
{
[Description("日志类型")]
[Required(AllowEmptyStrings = true)]
[StringLength(50)]
public string Type { get; set; }
[Description("客户端电脑名称")]
[Required(AllowEmptyStrings = true)]
[StringLength(200)]
public string Client { get; set; }
[Description("客户端IP")]
[Required(AllowEmptyStrings = true)]
[StringLength(200)]
public string IP { get; set; }
[Description("会话编号")]
[Required(AllowEmptyStrings = true)]
[StringLength(200)]
public string SessionId { get; set; }
[Description("信息")]
[StringLength(200)]
public string Message { get; set; }
//public override string ToString()
//{
// return EntitiesHelper.GetPropertiesString(this);
//}
#region 公共字段
[Description("创建人")]
[Required(AllowEmptyStrings = true)]
[StringLength(50)]
public string CreateUser { get; set; } = "";
[Description("创建时间")]
public DateTime CreateTime { get; set; } = DateTime.Now;
[IsDataGridColum(true, 3)]
[Description("备注")]
public string Remark { get; set; }
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int UID { get; set; }
[Key]
public Guid GUID { get; set; } = Guid.NewGuid();
#endregion
}
}