public static void ModifierParticipant(Participant participant) { using (var contexte = new Contexte()) { contexte.Participants.Attach(participant); contexte.Entry(participant).State = EntityState.Modified; contexte.SaveChanges(); } }
public static void ModifierDossier(DossierReservation dossier) { using (var contexte = new Contexte()) { contexte.DossiersReservations.Attach(dossier); contexte.Entry(dossier).State = EntityState.Modified; contexte.SaveChanges(); } }
public static void ModifierVoyage(Voyage voyage) { using (var contexte = new Contexte()) { contexte.Voyages.Attach(voyage); contexte.Entry(voyage).State = EntityState.Modified; contexte.SaveChanges(); } }
public static void ModifierAgence(AgenceVoyage agence) { using (var contexte = new Contexte()) { contexte.AgencesVoyages.Attach(agence); contexte.Entry(agence).State = EntityState.Modified; contexte.SaveChanges(); } }
public static void ModifierAssurance(Assurance assurance) { using (var contexte = new Contexte()) { contexte.Assurances.Attach(assurance); contexte.Entry(assurance).State = EntityState.Modified; contexte.SaveChanges(); } }
public static void ModifierDestination(Destination destination) { using (var contexte = new Contexte()) { contexte.Destinations.Attach(destination); contexte.Entry(destination).State = EntityState.Modified; contexte.SaveChanges(); } }
public static void ModifierClient(Client client) { using (var contexte = new Contexte()) { contexte.Clients.Attach(client); contexte.Entry(client).State = EntityState.Modified; contexte.SaveChanges(); } }
public static void SupprimerDossier() { DossierReservation dossier = ChoisirDossier(); using (var contexte = new Contexte()) { contexte.Entry(dossier).State = EntityState.Deleted; contexte.SaveChanges(); } }
public static void SupprimerVoyage() { Voyage voyage = ChoisirVoyage(); using (var contexte = new Contexte()) { contexte.Entry(voyage).State = EntityState.Deleted; contexte.SaveChanges(); } }
public static void SupprimerAgence() { AgenceVoyage agence = ChoisirAgence(); using (var contexte = new Contexte()) { contexte.Entry(agence).State = EntityState.Deleted; contexte.SaveChanges(); } }
public static void SupprimerParticipant() { Participant participant = ChoisirParticipant(); using (var contexte = new Contexte()) { contexte.Entry(participant).State = EntityState.Deleted; contexte.SaveChanges(); } }
public static void SupprimerDestination() { Destination destination = ChoisirDestination(); using (var contexte = new Contexte()) { contexte.Entry(destination).State = EntityState.Deleted; contexte.SaveChanges(); } }
public static void SupprimerClient() { Client client = ChoisirClient(); using (var contexte = new Contexte()) { contexte.Entry(client).State = EntityState.Deleted; contexte.SaveChanges(); } }