Class hi_dd_user
[Display(Name = "用户管理")]
public class hi_dd_user : DbModelBase, IEntityBase<string>, INotifyPropertyChanged, IDataErrorInfo
- Inheritance
-
hi_dd_user
- Implements
- Inherited Members
- Extension Methods
Constructors
hi_dd_user()
public hi_dd_user()
Properties
Account
[Display(Name = "登陆账号")]
[Required]
[RegularExpression("^[a-zA-Z][a-zA-Z0-9_]{4,15}$", ErrorMessage = "字母开头,允许5-16字节,允许字母数字下划线")]
[Column("account", Order = 2)]
public string Account { get; set; }
Property Value
DisplayName
[Display(Name = "昵称")]
[Column("display", Order = 4)]
public string DisplayName { get; set; }
Property Value
Enable
[Display(Name = "启用")]
[Column("enable", Order = 4)]
public bool Enable { get; set; }
Property Value
LastLoginTime
[Display(Name = "最近登录时间")]
[Column("last_login_time", Order = 6)]
public DateTime LastLoginTime { get; set; }
Property Value
LicenseDeadline
[Display(Name = "许可截止时间")]
[Column("license_deadline", Order = 7)]
public DateTime LicenseDeadline { get; set; }
Property Value
[Display(Name = "邮箱")]
[Column("mail", Order = 5)]
public string Mail { get; set; }
Property Value
Name
[Display(Name = "用户名称")]
[Required]
[RegularExpression("^[\\u4e00-\\u9fa5]{0,}$", ErrorMessage = "只能输入汉字")]
[Column("user_name", Order = 1)]
public string Name { get; set; }
Property Value
Password
[Display(Name = "登陆密码")]
[Required]
[Column("password", Order = 3)]
[RegularExpression("^[0-9]{5,17}$", ErrorMessage = "以字母开头,长度在6~18之间,只能包含字母、数字和下划线")]
public string Password { get; set; }
Property Value
Role
[JsonIgnore]
[Display(Name = "角色")]
[Column("role", Order = 9)]
[DataGridColumn("*", PropertyPath = "{0}.Name")]
[MethodNameSourcePropertyItem(typeof(ComboBoxPropertyItem), "GetRoles")]
public virtual hi_dd_role Role { get; set; }
Property Value
RoleID
[Browsable(false)]
[Column("role_id", Order = 8)]
public string RoleID { get; set; }
Property Value
Methods
GetRoles()
public List<hi_dd_role> GetRoles()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.