You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
using System.Data;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.Models
|
|
|
|
|
{
|
|
|
|
|
public class UserSessionEntity
|
|
|
|
|
{
|
|
|
|
|
#region 私有成员
|
|
|
|
|
private string _gid;//主键唯一值
|
|
|
|
|
private string _session_id;//Session GID
|
|
|
|
|
private DateTime _create_time;//创建时间
|
|
|
|
|
private string _create_user;//创建人
|
|
|
|
|
private bool _is_delete;//是否已停用
|
|
|
|
|
private DateTime _delete_time;//停用时间
|
|
|
|
|
private int _expires_minutes;//超时时间(分钟计算)
|
|
|
|
|
private int _type;//类型
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public UserSessionEntity()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region 读写属性
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 主键唯一值
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string GID
|
|
|
|
|
{
|
|
|
|
|
get { return _gid; }
|
|
|
|
|
set { _gid = value; }
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Session GID
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string SessionID
|
|
|
|
|
{
|
|
|
|
|
get { return _session_id; }
|
|
|
|
|
set { _session_id = value; }
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 创建时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime CreateTime
|
|
|
|
|
{
|
|
|
|
|
get { return _create_time; }
|
|
|
|
|
set { _create_time = value; }
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 创建人
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string CreateUser
|
|
|
|
|
{
|
|
|
|
|
get { return _create_user; }
|
|
|
|
|
set { _create_user = value; }
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否已停用
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool IsDelete
|
|
|
|
|
{
|
|
|
|
|
get { return _is_delete; }
|
|
|
|
|
set { _is_delete = value; }
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 停用时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime DeleteTime
|
|
|
|
|
{
|
|
|
|
|
get { return _delete_time; }
|
|
|
|
|
set { _delete_time = value; }
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 超时时间(分钟计算)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int ExpiresMinutes
|
|
|
|
|
{
|
|
|
|
|
get { return _expires_minutes; }
|
|
|
|
|
set { _expires_minutes = value; }
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 类型
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int Type
|
|
|
|
|
{
|
|
|
|
|
get { return _type; }
|
|
|
|
|
set { _type = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|