⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user.cs

📁 系统使用VS2005编写 数据库 使用SQL server 2000 或 SQL server 2005 测试前请先修改app.config 或web.config 的数据库连接字符串
💻 CS
字号:
// 
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -