Ejemplo n.º 1
0
        public void Inserir(TblEditoraDTO ObjEditora)
        {
            string sql = string.Format($@"INSERT INTO tbl_editora VALUES (NULL,'{ObjEditora.Nome}', '{ObjEditora.Endereco}',                                                                
                                                                          '{ObjEditora.UF1}');");

            DaoBanco.executarComando(sql);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        public void Excluir(TblEditoraDTO objEditora)
        {
            string sql = string.Format($@"DELETE FROM tbl_editora where id = {objEditora.IdEditora};");

            DaoBanco.executarComando(sql);
        }