public void Inserir(TblEditoraDTO ObjEditora) { string sql = string.Format($@"INSERT INTO tbl_editora VALUES (NULL,'{ObjEditora.Nome}', '{ObjEditora.Endereco}', '{ObjEditora.UF1}');"); DaoBanco.executarComando(sql); }
public void Alterar(TblEditoraDTO dtoEditora) { string sql = string.Format($@"UPDATE tbl_editora set nome = '{dtoEditora.Nome}', endereco = '{dtoEditora.Endereco}', UF = '{dtoEditora.UF1}' where id = '{dtoEditora.IdEditora}';"); DaoBanco.executarComando(sql); }
public void Excluir(TblEditoraDTO objEditora) { string sql = string.Format($@"DELETE FROM tbl_editora where id = {objEditora.IdEditora};"); DaoBanco.executarComando(sql); }