la méthode supprimerInscritBdd faite mais en attente des méthodes de suppression banque, compte, echéancier et planification
continuous-integration/drone/push Build is passing Details

Link_to_npgsql
Nicolas MAYE 2 years ago
parent 1c39f4b402
commit 4759d16bd8

@ -72,21 +72,18 @@ namespace LinqToPgSQL
string requete = $"DELETE FROM INSCRIT WHERE id=(@p)"; 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); command1.Parameters.AddWithValue("p2", i.Id);
await command1.ExecuteNonQueryAsync(); await command1.ExecuteNonQueryAsync();
} }
using (var command = new NpgsqlCommand(requete, conn)) /* SupprimerBanqueBdd(i);
{ SupprimerCompteBdd(i);
command.Parameters.AddWithValue("p", i.Id); SupprimerEcheancierBdd(i);
await command.ExecuteNonQueryAsync(); SupprimerPlanificationBdd(i);
} */
} }
} }

Loading…
Cancel
Save