示例#1
0
        public void InserirE(TBLeditoraDTO Objeditora)
        {
            string sql = string.Format($@"INSERT INTO tbl_editora VALUES (NULL,'{Objeditora.Nome}',
                                                                               '{Objeditora.Endereco}',                                                                
                                                                               '{Objeditora.UF1}');");

            DaoBanco.executarComando(sql);
        }
示例#2
0
        public void AlterarE(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);
        }
示例#3
0
        public void ExcluirE(TBLeditoraDTO objeditora)
        {
            string sql = string.Format($@"DELETE FROM tbl_editora where id = {objeditora.IdEditora};");

            DaoBanco.executarComando(sql);
        }