feat: list e insert
This commit is contained in:
@@ -62,11 +62,11 @@ 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));
|
||||
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();
|
||||
await cmd.ExecuteNonQueryAsync();
|
||||
|
||||
}
|
||||
|
||||
|
BIN
database.sqlite
BIN
database.sqlite
Binary file not shown.
Reference in New Issue
Block a user