feat: list e insert

This commit is contained in:
703558
2025-07-30 16:40:47 -03:00
parent 7e734919fb
commit be468646f5
2 changed files with 5 additions and 5 deletions

View File

@@ -62,12 +62,12 @@ namespace Workshop8.Data
VALUES (@nome, @email, @criadoEm) "; VALUES (@nome, @email, @criadoEm) ";
cmd.CommandType = CommandType.Text; cmd.CommandType = CommandType.Text;
cmd.Parameters.Add(new SqliteParameter("@nome",c.Nome)); cmd.Parameters.Add(new SqliteParameter("@nome", c.Nome));
cmd.Parameters.Add(new SqliteParameter("@email",c.Email)); cmd.Parameters.Add(new SqliteParameter("@email", c.Email));
cmd.Parameters.Add(new SqliteParameter("@criadoEm",c.CriadoEm)); cmd.Parameters.Add(new SqliteParameter("@criadoEm", c.CriadoEm));
await using cmd.ExecuteNonQueryAsync();
await cmd.ExecuteNonQueryAsync();
} }
public async Task UpdateClientAsync(Cliente c) public async Task UpdateClientAsync(Cliente c)

Binary file not shown.