示例#1
0
        public BsUsers GetObjects()
        {
            Database.DaUsers ass = new Database.DaUsers();
            DataTable        dt  = ass.GetUsers(
                _id,
                _login,
                _name
                );

            return(addObjectsList(dt));
        }
示例#2
0
        public BsUser GetObject()
        {
            if (_id <= 0)
            {
                return(this);
            }
            Database.DaUsers ass = new Database.DaUsers();
            DataTable        dt  = ass.GetUsers(
                _id,
                _login,
                _name
                );

            if (dt.Rows.Count > 0)
            {
                setObject(this, dt.Rows[0]);
            }
            else
            {
                _id = 0;
            }
            return(this);
        }