示例#1
0
        /// <summary>
        /// 查询username是否存在
        /// </summary>
        /// <param name="username"></param>
        /// <returns></returns>
        public bool QueryExitByUsername(string username)
        {
            List <Wheres> list = new List <Wheres>();
            Wheres        wh   = new Wheres();

            wh.setField("username", "=", username, "");
            list.Add(wh);
            return(_dao.QuerySingleByWheres(wh) != null);
        }
示例#2
0
        /// <summary>
        /// 查询openId是否存在
        /// </summary>
        /// <param name="openId"></param>
        /// <returns></returns>

        public bool QueryExitByOpenId(string openId)
        {
            List <Wheres> list = new List <Wheres>();
            Wheres        wh   = new Wheres();

            wh.setField("openId", "=", openId, "");
            list.Add(wh);
            return(_dao.QuerySingleByWheres(wh) != null);
        }