Пример #1
0
 public void Alterar(BruxosDTO rogDTO)
 {
     query = $"update  bruxos set nome = '{rogDTO.Nome}', cpf = '{rogDTO.Cpf}',endereco = '{rogDTO.Endereco}',telefone = '{rogDTO.Telefone}',email = '{rogDTO.Email}' where id = '{rogDTO.Id}';";
     conexao.executarComandos(query);
 }
Пример #2
0
 public void Delete(BruxosDTO rogDTO)
 {
     query = $"delete from bruxos where id = '{rogDTO.Id}';";
     conexao.executarComandos(query);
 }
Пример #3
0
 public void Criar(BruxosDTO rogDTO)
 {
     query = $"insert into bruxos(id, nome, cpf, endereco, telefone, email, senha) values (null,'{rogDTO.Nome}','{rogDTO.Cpf}','{rogDTO.Endereco}','{rogDTO.Telefone}','{rogDTO.Email}','{rogDTO.Senha}');";
     conexao.executarComandos(query);
 }