feat: list e insert
This commit is contained in:
@@ -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)
|
||||||
|
BIN
database.sqlite
BIN
database.sqlite
Binary file not shown.
Reference in New Issue
Block a user