using System; using Castle.ActiveRecord; using System.Text; namespace BizCom { [ActiveRecord("X_User")] public class X_User : ComBase { /// /// /// [PrimaryKey(PrimaryKeyType.Native)] public int ID { get; set; } private int _roleID=0; /// /// /// [Property] public int RoleID { get{ return _roleID; } set{ _roleID=value; } } private string _account=""; /// /// /// [Property] public string Account { get{ return _account; } set{ _account=value; } } private string _passWord=""; /// /// /// [Property] public string PassWord { get{ return _passWord; } set{ _passWord=value; } } /// /// /// [Property] public DateTime? CreateTime { get; set; } /// /// /// [Property] public DateTime? PreLoginTime { get; set; } /// /// /// [Property] public DateTime? CurLoginTime { get; set; } private string _loginIP=""; /// /// /// [Property] public string LoginIP { get{ return _loginIP; } set{ _loginIP=value; } } private string _ticket=""; /// /// /// [Property] public string Ticket { get{ return _ticket; } set{ _ticket=value; } } private int _state=0; /// /// /// [Property] public int State { get{ return _state; } set{ _state=value; } } private string _station=""; /// /// /// [Property] public string Station { get{ return _station; } set{ _station=value; } } public static void Del(object id) { StringBuilder sql = new StringBuilder(); sql.AppendFormat("delete from X_User where id=" + id); ExecuteNonQuery(sql.ToString()); } } }