From 4548789618cde0e15b5413bc322366f9aeb4667e Mon Sep 17 00:00:00 2001 From: nimaye Date: Thu, 20 Oct 2022 08:55:37 +0200 Subject: [PATCH] modification --- Code/LinqToPgSQL/PersLinqToPgSQL.cs | 2 +- Code/Model/Stub.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Code/LinqToPgSQL/PersLinqToPgSQL.cs b/Code/LinqToPgSQL/PersLinqToPgSQL.cs index bd43f68..f83b4ac 100644 --- a/Code/LinqToPgSQL/PersLinqToPgSQL.cs +++ b/Code/LinqToPgSQL/PersLinqToPgSQL.cs @@ -79,7 +79,7 @@ namespace LinqToPgSQL using (var command1 = new NpgsqlCommand(requete, conn)) { - command1.Parameters.AddWithValue("p2", i.Id); + command1.Parameters.AddWithValue("p", i.Id); await command1.ExecuteNonQueryAsync(); } diff --git a/Code/Model/Stub.cs b/Code/Model/Stub.cs index 42b3df6..b35a14a 100644 --- a/Code/Model/Stub.cs +++ b/Code/Model/Stub.cs @@ -39,6 +39,8 @@ namespace Model Comptes.Add(new("PEL", 22000)); return Comptes; } + + } }