Beispiel #1
0
        public void InserirCD(tblCdDTO ObjCD)
        {
            string sql = string.Format($@"INSERT INTO tbl_cliente VALUES (NULL,'{ObjCD.NomeCD}',
                                                                          '{ObjCD.PrecoVenda}',
                                                                          '{ObjCD.DtLancamento}');");

            DaoBanco.executarComando(sql);
        }
Beispiel #2
0
        public void AlterarCD(tblCdDTO dtoCd)
        {
            string sql = string.Format($@"UPDATE tbl_cd set nomeCD = '{dtoCd.NomeCD}',
                                                               precoVenda = '{dtoCd.PrecoVenda}',
                                                               dtLancamento = '{dtoCd.DtLancamento}'                                                               
                                                               where idCD = '{dtoCd.IdCD}';");

            DaoBanco.executarComando(sql);
        }
Beispiel #3
0
        public void ExcluirCD(tblCdDTO objCD)
        {
            string sql = string.Format($@"DELETE FROM tbl_cd where idCD = {objCD.IdCD};");

            DaoBanco.executarComando(sql);
        }