///<summary> ///添加方法,返回Boolean类型,为true表示操作成功,否则操作失败 ///生成时间:2010-11-2 13:38:52 ///</summary> public Boolean AddLoginservers(Loginservers loginservers) { MySqlParameter[] param = new MySqlParameter[] { new MySqlParameter("?name", loginservers.Name), new MySqlParameter("?ip", loginservers.Ip), new MySqlParameter("?status", loginservers.Status), new MySqlParameter("?webserverip", loginservers.Webserverip), new MySqlParameter("?sessionid", loginservers.Sessionid) }; return(MySqlHelper.ExecuteNonQuery(SQL_INSERT, param) > 0); }
///<sumary> ///修改信息 ///时间:2010-11-2 13:39:04 ///</sumary> public static Boolean UpdateLoginservers(Loginservers loginservers) { try { return(loginserversService.UpdateLoginservers(loginservers)); } catch (Exception ex) { //可以记录到异常日志 return(false); } }