From a78370d4d7ead2d5eff1484dae5d06b5ba40f5a8 Mon Sep 17 00:00:00 2001 From: jboinembalome Date: Thu, 25 Feb 2021 09:13:06 +0100 Subject: [PATCH] =?UTF-8?q?MAJ=20du=20jeu=20de=20donn=C3=A9es=20pour=20les?= =?UTF-8?q?=20participations=20aux=20formations=20(non=20termin=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EPAServeur/Context/DataSeeder.cs | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/EPAServeur/Context/DataSeeder.cs b/EPAServeur/Context/DataSeeder.cs index 614eb95..afcedf5 100644 --- a/EPAServeur/Context/DataSeeder.cs +++ b/EPAServeur/Context/DataSeeder.cs @@ -1136,10 +1136,10 @@ namespace EPAServeur.Context // Participation formation - ParticipationFormation p1, p2, p3, p4; + //ParticipationFormation p1, p2, p3, p4; ParticipationFormation p5, p6, p7, p8; - ParticipationFormation p9, p10, p11, p12; - + //ParticipationFormation p9, p10, p11, p12; + /* p1 = new ParticipationFormation { @@ -1184,13 +1184,12 @@ namespace EPAServeur.Context Formation = f3 }; epContext.ParticipationFormation.Add(p4); - + */ p5 = new ParticipationFormation { IdParticipationFormation = 5, DateCreation = new DateTime(2020, 5, 25, 9, 0, 0), EstEvaluee = false, - IdDemandeFormation = d5.IdDemandeFormation, DemandeFormation = d5, Formation = f3 }; @@ -1201,7 +1200,6 @@ namespace EPAServeur.Context IdParticipationFormation = 6, DateCreation = new DateTime(2020, 6, 25, 9, 0, 0), EstEvaluee = false, - IdDemandeFormation = d6.IdDemandeFormation, DemandeFormation = d6, Formation = f4 }; @@ -1212,7 +1210,6 @@ namespace EPAServeur.Context IdParticipationFormation = 7, DateCreation = new DateTime(2020, 7, 25, 9, 0, 0), EstEvaluee = false, - IdDemandeFormation = d7.IdDemandeFormation, DemandeFormation = d7, Formation = f4 }; @@ -1223,12 +1220,11 @@ namespace EPAServeur.Context IdParticipationFormation = 8, DateCreation = new DateTime(2020, 8, 25, 9, 0, 0), EstEvaluee = false, - IdDemandeFormation = d8.IdDemandeFormation, DemandeFormation = d8, Formation = f5 }; epContext.ParticipationFormation.Add(p8); - + /* p9 = new ParticipationFormation { IdParticipationFormation = 9, @@ -1273,7 +1269,7 @@ namespace EPAServeur.Context }; epContext.ParticipationFormation.Add(p12); - + */ epContext.SaveChanges(); }