Example #1
0
 public void CreateEleve(Eleve unEleve)
 {
     this.dbAutoEcole.lesEleves.Add(unEleve);
     End();
 }
Example #2
0
 public void DeleteEleve(Eleve unEleve)
 {
     this.dbAutoEcole.lesEleves.Remove(unEleve);
     End();
 }
Example #3
0
 public void UpdateEleve(Eleve unEleve)
 {
     dbAutoEcole.lesEleves.Attach(unEleve);
     dbAutoEcole.Entry(unEleve).State = EntityState.Modified;
     dbAutoEcole.SaveChanges();
 }