Пример #1
0
 internal static void modifierSerie(support current, string nom, string realisateur, int idGenre, string resume, string image)
 {
     maConnexion.support.Find(current.idSupport).titreSupport = nom;
     maConnexion.support.Find(current.idSupport).realisateur  = realisateur;
     maConnexion.support.Find(current.idSupport).image        = image;
     maConnexion.support.Find(current.idSupport).idGenre      = idGenre;
     maConnexion.serie.Find(current.idSupport).resumeSerie    = resume;
     maConnexion.SaveChanges();
 }
Пример #2
0
 internal static void modifierFilm(support current, string nom, string realisateur, int idGenre, string duree, string image)
 {
     maConnexion.support.Find(current.idSupport).titreSupport = nom;
     maConnexion.support.Find(current.idSupport).realisateur  = realisateur;
     maConnexion.support.Find(current.idSupport).image        = image;
     maConnexion.support.Find(current.idSupport).idGenre      = idGenre;
     maConnexion.film.Find(current.idSupport).duree           = duree;
     maConnexion.SaveChanges();
 }
Пример #3
0
 internal static void ajouterSupport(support leSupport)
 {
     maConnexion.support.Add(leSupport);
     maConnexion.SaveChanges();
 }