From 4759d16bd8636bf33f9b32a6adaf6af450836ed2 Mon Sep 17 00:00:00 2001 From: nimaye Date: Wed, 19 Oct 2022 09:31:26 +0200 Subject: [PATCH] =?UTF-8?q?la=20m=C3=A9thode=20supprimerInscritBdd=20faite?= =?UTF-8?q?=20mais=20en=20attente=20des=20m=C3=A9thodes=20de=20suppression?= =?UTF-8?q?=20banque,=20compte,=20ech=C3=A9ancier=20et=20planification?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Code/LinqToPgSQL/PersLinqToPgSQL.cs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/Code/LinqToPgSQL/PersLinqToPgSQL.cs b/Code/LinqToPgSQL/PersLinqToPgSQL.cs index 1eb575d..c543835 100644 --- a/Code/LinqToPgSQL/PersLinqToPgSQL.cs +++ b/Code/LinqToPgSQL/PersLinqToPgSQL.cs @@ -72,21 +72,18 @@ namespace LinqToPgSQL string requete = $"DELETE FROM INSCRIT WHERE id=(@p)"; - string requeteFKey = $"DELETE FROM DEVISEINSCRIT WHERE idInscrit=(@p2)"; - using (var command1 = new NpgsqlCommand(requeteFKey, conn)) + using (var command1 = new NpgsqlCommand(requete, conn)) { command1.Parameters.AddWithValue("p2", i.Id); await command1.ExecuteNonQueryAsync(); } - using (var command = new NpgsqlCommand(requete, conn)) - { - command.Parameters.AddWithValue("p", i.Id); - await command.ExecuteNonQueryAsync(); - } - - + /* SupprimerBanqueBdd(i); + SupprimerCompteBdd(i); + SupprimerEcheancierBdd(i); + SupprimerPlanificationBdd(i); +*/ } }