using System;
using System.Data;
namespace DSWeb.Models
{
///
/// 用户基本登录信息表
///
public class UserEntity
{
#region 私有成员
private string _gid;//账户Guid
private string _username;//账户登录名
private string _codename;//账户代码名
private string _showname;//账户显示名
private string _password;//账户密码(明文)
private DateTime _enrolltime;//账户注册时间
private string _create_userid;//账户创建操作人Guid
private string _modified_userid;//最后一次更改操作人Guid
private DateTime _modified_time;//最后一次更改时间
private bool _isDeleted;//账户是否被删除(值为1则账户被删除,如果为0则账户正常)
private bool _isDisable;//账户是否被禁用(值为1则账户被禁用,如果为0则账户正常)
private UserBaseInfoEntity _baseInfo;//账户基本属性
#endregion
///
/// 构造函数
///
public UserEntity()
{
}
public UserEntity(UserBaseInfoEntity baseInfo)
{
_baseInfo = baseInfo;
}
#region 读写属性
///
/// 账户Guid
///
public string Gid
{
get { return _gid; }
set { _gid = value; }
}
///
/// 账户登录名
///
public string UserName
{
get { return _username; }
set { _username = value; }
}
///
/// 账户代码名
///
public string CodeName
{
get { return _codename; }
set { _codename = value; }
}
///
/// 账户显示名
///
public string ShowName
{
get { return _showname; }
set { _showname = value; }
}
///
/// 账户密码(明文)
///
public string PassWord
{
get { return _password; }
set { _password = value; }
}
///
/// 账户注册时间
///
public DateTime EnrollTime
{
get { return _enrolltime; }
set { _enrolltime = value; }
}
///
/// 账户创建操作人Guid
///
public string CreatedUserID
{
get { return _create_userid; }
set { _create_userid = value; }
}
///
/// 最后一次更改操作人Guid
///
public string ModifiedUserID
{
get { return _modified_userid; }
set { _modified_userid = value; }
}
///
/// 最后一次更改时间
///
public DateTime ModifiedTime
{
get { return _modified_time; }
set { _modified_time = value; }
}
///
/// 账户是否被删除(值为1则账户被删除,如果为0则账户正常)
///
public bool IsDeleted
{
get { return _isDeleted; }
set { _isDeleted = value; }
}
///
/// 账户是否被禁用(值为1则账户被禁用,如果为0则账户正常)
///
public bool IsDisable
{
get { return _isDisable; }
set { _isDisable = value; }
}
///
/// 账户基本属性
///
public UserBaseInfoEntity BaseInfo
{
get { return _baseInfo; }
set { _baseInfo = value; }
}
#endregion
}
}