public void Update(PositionObstacle unePositionObstacle) { _DBAL.Update(" PositionObstacle SET idPositionObstacle = " + unePositionObstacle.IdPositionObstacle + ",nomObstacle = '" + unePositionObstacle.NomObstacle + "', idReservation = " + unePositionObstacle.IdReservation + " , positionObstacle = " + unePositionObstacle.unePositionObstacle + " WHERE nomObstacle = '" + unePositionObstacle.NomObstacle + "';"); }
public void Update(Reservation uneReservation) { _DBAL.Update(" Reservation SET idReservation = " + uneReservation.IdReservation + ",idClient = " + uneReservation.IdClient + ",idSalle = " + uneReservation.IdSalle + ",idTransaction = " + uneReservation.IdTransaction + ",dateReservation = " + uneReservation.DateReservation + ", nbJoueurs = " + uneReservation.NbJoueurs + ", nbObstacles = " + uneReservation.NbObstacle + "WHERE idReservation = " + uneReservation.IdReservation + ";"); }
public void Update(Obstacle unObstacle)// mettre à jour une ligne { _DBAL.Update(" Obstacle SET nom = '" + unObstacle.NomObstacle + "', UneDefinition = '" + unObstacle.Definition + "', Photo = '" + unObstacle.Photo + "', typeObstacle = '" + unObstacle.TypeObstacle + "' WHERE nom = '" + unObstacle.NomObstacle + "';"); }