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