Exemple #1
0
        public string GetUserID(string username)
        {
            TUserManager userManager = new TUserManager();
            var          dt          = userManager.GetDataSetByFieldsAndWhere("UserID", $"where UserName='******'").Tables[0];

            if (dt.Rows.Count > 0)
            {
                return(dt.Rows[0][0].ToString());
            }
            return("");
        }
Exemple #2
0
        /// <summary>
        /// 查询用户信息
        /// </summary>
        /// <param name="userName"></param>
        /// <returns></returns>
        public DataSet GetUserInfo(string username)
        {
            TUserManager userManager = new TUserManager();

            return(userManager.GetDataSetByFieldsAndWhere("UserRole,UserPassword,UserID", $"where UserName='******'"));
        }