public new void Dispose() { UsersServer.Dispose(); PostsServer.Dispose(); base.Dispose(); }
//注册用户2 public static int Reg(string name, string pwd, string type, string telphone) { return(UsersServer.Reg(name, pwd, type, telphone)); }
public static int CheckName(string name) { return(UsersServer.CheckName(name)); }
public static int countByNamePwd(string name, string pwd) { return(UsersServer.countByNamePwd(name, pwd)); }
/// <summary> /// 添加新的用户 /// </summary> /// <param name="u"></param> /// <returns></returns> public static bool insertUser(Users u) { return(UsersServer.insertUser(u)); }
/// <summary> /// 修改用户密码 /// </summary> public static bool ChangeUserPwd(string UserName, string UserPwd) { return(UsersServer.ChangeUserPwd(UserName, UserPwd)); }
/// <summary> /// 查询所有用户 /// </summary> /// <returns></returns> public static List <Users> ChaXunAll() { return(UsersServer.ChaXunAll()); }
/// <summary> /// 判断用户是否存在 /// </summary> /// <param name="UserName"></param> /// <param name="UserPwd"></param> /// <returns></returns> public static bool PanDuan_User(string UserName, string UserPwd) { return(UsersServer.PanDuan_User(UserName, UserPwd)); }