Beispiel #1
0
        /// <summary>
        /// 按用户名查询
        /// </summary>
        /// <param name="sn"></param>
        /// <returns></returns>
        public SysUser FindByUsername(string username)
        {
            IList <SysUser> list = SysUserDao.FindByHql(" and username=?", new Object[] { username }, "id desc");
            SysUser         user = null;

            if (list.Count() > 0)
            {
                user = list[0];
            }
            return(user);
        }