예제 #1
0
 public void Update(Dossier dossier)
 {
     using (_db = new CabinetAvocatEntities())
     {
         _db.Entry(dossier).State = System.Data.Entity.EntityState.Modified;
         _db.SaveChanges();
     }
 }
예제 #2
0
 public void Update(Adherent adherant)
 {
     using (_db = new CabinetAvocatEntities())
     {
         _db.Entry(adherant).State = System.Data.Entity.EntityState.Modified;
         _db.SaveChanges();
     }
 }
예제 #3
0
 public void Add(Dossier dossier)
 {
     using (_db = new CabinetAvocatEntities())
     {
         _db.Dossier.Add(dossier);
         _db.SaveChanges();
     }
 }
예제 #4
0
 public void Add(Adherent adherent)
 {
     using (_db = new CabinetAvocatEntities())
     {
         _db.Adherent.Add(adherent);
         _db.SaveChanges();
     }
 }
예제 #5
0
 public void Update(Compte compte)
 {
     using (_db = new CabinetAvocatEntities())
     {
         _db.Entry(compte).State = System.Data.Entity.EntityState.Modified;
         _db.SaveChanges();
     }
 }
예제 #6
0
 public void AddCompte(Compte compte)
 {
     using (_db = new CabinetAvocatEntities())
     {
         _db.Compte.Add(compte);
         _db.SaveChanges();
     }
 }
예제 #7
0
 public void Update(RendezVous rendezVous)
 {
     using (_db = new CabinetAvocatEntities())
     {
         _db.Entry(rendezVous).State = System.Data.Entity.EntityState.Modified;
         _db.SaveChanges();
     }
 }
예제 #8
0
 public void Add(RendezVous rendezVous)
 {
     using (_db = new CabinetAvocatEntities())
     {
         _db.RendezVous.Add(rendezVous);
         _db.SaveChanges();
     }
 }