/// <summary> /// Save the message /// </summary> public bool saveMsg(csMsg msg) { sql.SQL type = sql.SQL.S_SAVE_MSG; MySqlCommand cmd = new MySqlCommand(String.Format(sql.GetSQL(type), msg.content, msg.dt.ToString("yyyy-MM-dd HH:mm:ss"), msg.sender, msg.msgType)); return(GeneralNonSelectQuery(cmd) == 1); }
/// <summary> /// Save the message /// </summary> public bool saveMsg(csMsg msg) { sql.SQL type = sql.SQL.S_SAVE_MSG; MySqlCommand cmd = new MySqlCommand(String.Format(sql.GetSQL(type), msg.content, msg.dt.ToString("yyyy-MM-dd HH:mm:ss"), msg.sender, msg.msgType)); return (GeneralNonSelectQuery(cmd) == 1); }