/// <summary> /// 更改用户登录状态 /// </summary> public bool JudgeLoginFalse(string name) { return(SuperDbHelper.Update("update LoginVm set states = 0 where UserName = @name", new SqlParameter("@name", SqlDbType.NVarChar) { Value = name })); }
/// <summary> /// 注册时添加 用户 /// </summary> /// <param name="name"></param> /// <param name="pwd"></param> /// <returns></returns> public bool CreateUser(string name, string pwd) { return(SuperDbHelper .Update("insert into LoginVm values(@name,@pwd,getdate(),getdate(),0,0)", new SqlParameter("@name", name), new SqlParameter("@pwd", pwd) )); }