modifcation suppression inscrit bdd
continuous-integration/drone/push Build is passing Details

connexion
Nicolas MAYE 2 years ago
parent 58e1f540a3
commit 756bf52499

@ -56,12 +56,13 @@ namespace IHM
}
}
MessageBox.Show("Suppression ok");
}
private void test_Click(object sender, RoutedEventArgs e)
{
testSelect();
/* testSuppression();*/
}
}
}

@ -75,11 +75,11 @@ namespace LinqToPgSQL
string requete = $"DELETE FROM INSCRIT WHERE id=(@p)";
string requeteFKey = $"DELETE FROM DEVISE WHERE id=(@p2)";
string requeteFKey = $"DELETE FROM DEVISEINSCRIT WHERE idInscrit=(@p2)";
using (var command1 = new NpgsqlCommand(requeteFKey, conn))
{
command1.Parameters.AddWithValue("p2", i.Dev);
command1.Parameters.AddWithValue("p2", i.Id);
await command1.ExecuteNonQueryAsync();
}

Loading…
Cancel
Save