Table of Contents

Class User

Namespace
HeBianGu.Systems.Identity
Assembly
HeBianGu.Systems.Identity.dll
public class User : SelectViewModel<hi_dd_user>, INotifyPropertyChanged, IModelViewModel<hi_dd_user>, IModelViewModel, ISearchable, ISelectViewModel, 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

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

Property Value

Role

Methods

IsValid(string)

public virtual bool IsValid(string authorId)

Parameters

authorId string

Returns

bool