Table of Contents

Class User

Namespace
H.Modules.Identity
Assembly
H.Modules.Identity.dll
public class User : SelectBindable<hi_dd_user>, INotifyPropertyChanged, IModelBindable<hi_dd_user>, IModelBindable, ISearchable, ISelectable, IUser
Inheritance
User
Implements
Derived
Inherited Members
Extension Methods

Constructors

User()

public User()

User(hi_dd_user)

public User(hi_dd_user model)

Parameters

model hi_dd_user

Properties

Account

[Required]
[Display(Name = "登录名称")]
public string Account { get; set; }

Property Value

string

ID

[Browsable(false)]
public string ID { get; }

Property Value

string

Name

[Required]
[Display(Name = "用户名称")]
public string Name { get; set; }

Property Value

string

Password

[Required]
[Display(Name = "登录密码")]
public string Password { get; set; }

Property Value

string

Role

[JsonIgnore]
[Required]
[Display(Name = "用户角色")]
[PropertyItem(typeof(RoleComboBoxPropertyItem))]
public Role Role { get; set; }

Property Value

Role

Methods

IsValid(string)

public virtual bool IsValid(string authorId)

Parameters

authorId string

Returns

bool