user.cs

来自「系统使用VS2005编写 数据库 使用SQL server 2000 或 」· CS 代码 · 共 90 行

CS
90
字号
// 
// Generated by ActiveRecord Generator
// 
//
namespace JPKC.DAL.WLDXT
{
    using Castle.ActiveRecord;
    
    
    [ActiveRecord("Users")]
    public class User : ActiveRecordBase<User>
    {
        
        private int _usersID;
        
        private string _usersName;
        
        private string _usersPwd;
        
        private bool _dELETELAG;
        
        [PrimaryKey(PrimaryKeyType.Native)]
        public int UsersID
        {
            get
            {
                return this._usersID;
            }
            set
            {
                this._usersID = value;
            }
        }
        
        [Property()]
        public string UsersName
        {
            get
            {
                return this._usersName;
            }
            set
            {
                this._usersName = value;
            }
        }
        
        [Property()]
        public string UsersPwd
        {
            get
            {
                return this._usersPwd;
            }
            set
            {
                this._usersPwd = value;
            }
        }
        
        [Property()]
        public bool DELETELAG
        {
            get
            {
                return this._dELETELAG;
            }
            set
            {
                this._dELETELAG = value;
            }
        }
        
        //public static void DeleteAll()
        //{
        //    ActiveRecordBase.DeleteAll(typeof(User));
        //}
        
        //public static User[] FindAll()
        //{
        //    return ((User[])(ActiveRecordBase.FindAll(typeof(User))));
        //}
        
        //public static User Find(int UsersID)
        //{
        //    return ((User)(ActiveRecordBase.FindByPrimaryKey(typeof(User), UsersID)));
        //}
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?