public new void Dispose()
 {
     UsersServer.Dispose();
     PostsServer.Dispose();
     base.Dispose();
 }
示例#2
0
 //注册用户2
 public static int Reg(string name, string pwd, string type, string telphone)
 {
     return(UsersServer.Reg(name, pwd, type, telphone));
 }
示例#3
0
 public static int CheckName(string name)
 {
     return(UsersServer.CheckName(name));
 }
示例#4
0
 public static int countByNamePwd(string name, string pwd)
 {
     return(UsersServer.countByNamePwd(name, pwd));
 }
示例#5
0
 /// <summary>
 /// 添加新的用户
 /// </summary>
 /// <param name="u"></param>
 /// <returns></returns>
 public static bool insertUser(Users u)
 {
     return(UsersServer.insertUser(u));
 }
示例#6
0
 /// <summary>
 /// 修改用户密码
 /// </summary>
 public static bool ChangeUserPwd(string UserName, string UserPwd)
 {
     return(UsersServer.ChangeUserPwd(UserName, UserPwd));
 }
示例#7
0
 /// <summary>
 /// 查询所有用户
 /// </summary>
 /// <returns></returns>
 public static List <Users> ChaXunAll()
 {
     return(UsersServer.ChaXunAll());
 }
示例#8
0
 /// <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));
 }