コード例 #1
0
        public Boolean Autenticar(int idmusica, string nome, string nomeautor, int idgravadora, int idCd)
        {
            string consulta = string.Format($@"select * from TBML_Musica where idMusica = '{idMusica}' and nome = '{nome}' and nomeAutor = '{nomeautor}' and idGravadora = '{idgravadora}' and idCD = '{idCd}' ;");
            DataTable dt = DaoBanco.executarConsulta(consulta);

            if (dt.Rows.Count == 1)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
コード例 #2
0
ファイル: tblClienteBLL.cs プロジェクト: z4r0s/POO
        public Boolean Autenticar(string cpf, string nomecliente, string nomemae)
        {
            string    consulta = string.Format($@"select * from tbl_clienteb32 where cpf_cliente = '{cpf}' and nome_cliente = '{nomecliente}' and nome_mae = '{nomemae}' ;");
            DataTable dt       = DaoBanco.executarConsulta(consulta);

            if (dt.Rows.Count == 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
コード例 #3
0
ファイル: tblGravadoraBLL .cs プロジェクト: 11801042/POO3C50
        public DataTable ListarTodasAsGravadoras()
        {
            string sql = string.Format($@"select * from tbl_gravadora");

            return(DaoBanco.executarConsulta(sql));
        }
コード例 #4
0
        public DataTable ListarTodos()
        {
            string sql = string.Format($@"select * from tbl_autor");

            return(DaoBanco.executarConsulta(sql));
        }
コード例 #5
0
ファイル: tblMusicaBLL.cs プロジェクト: augustoflas/POO3C34
        public DataTable ListarMusicas(string nome)
        {
            string sql = string.Format($@"select * from tbl_musica where nome = '{nome}';");

            return(DaoBanco.executarConsulta(sql));
        }
コード例 #6
0
        public DataTable ListarGravadorasPorNome(string nome)
        {
            string sql = string.Format($@"select * from tbl_gravadora where nome = '{nome}';");

            return(DaoBanco.executarConsulta(sql));
        }
コード例 #7
0
        // Metodo Utilizado para Listar Produtos
        public DataTable ListarProdutos()
        {
            string sql = string.Format($@"select * from tbl_produto");

            return(daoBanco.executarConsulta(sql));
        }
コード例 #8
0
ファイル: tblLivrosBLL.cs プロジェクト: ojoaobr/POO_3D2_02_21
        // Metodo para Consultar os dados dos Livros
        public DataTable ListarLivros(string idLivro)
        {
            string sql = string.Format($@"select * from TBL_Livro where id = '{idLivro}';");

            return(daoBanco.executarConsulta(sql));
        }