using System; using System.ComponentModel.DataAnnotations; namespace TProduct.Model { /// /// 用户 /// public partial class LoginUser : System.ICloneable { public LoginUser() { } public LoginUser(LoginUser rhs) { this.ID = rhs.ID; this.CreateUserID = rhs.CreateUserID; this.CreateTime = rhs.CreateTime; this.UpdateUserID = rhs.UpdateUserID; this.UpdateTime = rhs.UpdateTime; this.Code = rhs.Code; this.RealName = rhs.RealName; this.Telephone = rhs.Telephone; this.LoginName = rhs.LoginName; this.LoginPwd = rhs.LoginPwd; this.IsAdmin = rhs.IsAdmin; this.LastLoginTime = rhs.LastLoginTime; } public void Reset(LoginUser rhs) { this.ID = rhs.ID; this.CreateUserID = rhs.CreateUserID; this.CreateTime = rhs.CreateTime; this.UpdateUserID = rhs.UpdateUserID; this.UpdateTime = rhs.UpdateTime; this.Code = rhs.Code; this.RealName = rhs.RealName; this.Telephone = rhs.Telephone; this.LoginName = rhs.LoginName; this.LoginPwd = rhs.LoginPwd; this.IsAdmin = rhs.IsAdmin; this.LastLoginTime = rhs.LastLoginTime; } /// /// 标识 /// [Display(Name = "标识")] public long ID { get; set; } /// /// 创建人 /// [Display(Name = "创建人")] public long CreateUserID { get; set; } /// /// 创建时间 /// [Display(Name = "创建时间")] public DateTime CreateTime { get; set; } /// /// 更新人 /// [Display(Name = "更新人")] public long UpdateUserID { get; set; } /// /// 更新时间 /// [Display(Name = "更新时间")] public DateTime UpdateTime { get; set; } /// /// 编号 /// [Display(Name = "编号")] public string Code { get; set; } /// /// 姓名 /// [Display(Name = "姓名")] public string RealName { get; set; } /// /// 电话 /// [Display(Name = "电话")] public string Telephone { get; set; } /// /// 登录名 /// [Display(Name = "登录名")] public string LoginName { get; set; } /// /// 密码 /// [Display(Name = "密码")] public string LoginPwd { get; set; } /// /// 是否是管理员 /// [Display(Name = "是否是管理员")] public bool IsAdmin { get; set; } /// /// 最后登录时间 /// [Display(Name = "最后登录时间")] public DateTime LastLoginTime { get; set; } public LoginUser Clone() { return (LoginUser)this.MemberwiseClone(); } object ICloneable.Clone() { return this.MemberwiseClone(); } } }