From be468646f50cfa3d9f76cc3077c4a1c2ae11f8c5 Mon Sep 17 00:00:00 2001 From: 703558 <703558@pucminas.br> Date: Wed, 30 Jul 2025 16:40:47 -0300 Subject: [PATCH] feat: list e insert --- Data/SqliteClientRepository.cs | 10 +++++----- database.sqlite | Bin 16384 -> 16384 bytes 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Data/SqliteClientRepository.cs b/Data/SqliteClientRepository.cs index 3184bbd..e219497 100644 --- a/Data/SqliteClientRepository.cs +++ b/Data/SqliteClientRepository.cs @@ -62,12 +62,12 @@ namespace Workshop8.Data VALUES (@nome, @email, @criadoEm) "; cmd.CommandType = CommandType.Text; - cmd.Parameters.Add(new SqliteParameter("@nome",c.Nome)); - cmd.Parameters.Add(new SqliteParameter("@email",c.Email)); - cmd.Parameters.Add(new SqliteParameter("@criadoEm",c.CriadoEm)); - - await using cmd.ExecuteNonQueryAsync(); + cmd.Parameters.Add(new SqliteParameter("@nome", c.Nome)); + cmd.Parameters.Add(new SqliteParameter("@email", c.Email)); + cmd.Parameters.Add(new SqliteParameter("@criadoEm", c.CriadoEm)); + await cmd.ExecuteNonQueryAsync(); + } public async Task UpdateClientAsync(Cliente c) diff --git a/database.sqlite b/database.sqlite index 374870de49b69c31aa9b3a34dc9b4cb90148f442..aa18b8c55fa32596d9bc2d51add5d2aad614a83c 100644 GIT binary patch delta 119 zcmZo@U~Fh$oFL7}G*QNxk!fSX5`GRQ{(c7jBmDiF1qGVsgb#Xv5E2IBl1oxpBVT*Z5A|m!OzFT T$Slj~oRgWF2h_~8$Up!9mE|C+ delta 62 zcmV-E0Kxx&fB}Gj0gxL30g)U-0RgdKqz?uG55xcu#Iq3~x(}1YA3_B401xxC5iscw U4GRGS9SK8hX=QG7Wpko15JIvNxBvhE