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; } }
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); } }
public DataTable ListarTodasAsGravadoras() { string sql = string.Format($@"select * from tbl_gravadora"); return(DaoBanco.executarConsulta(sql)); }
public DataTable ListarTodos() { string sql = string.Format($@"select * from tbl_autor"); return(DaoBanco.executarConsulta(sql)); }
public DataTable ListarMusicas(string nome) { string sql = string.Format($@"select * from tbl_musica where nome = '{nome}';"); return(DaoBanco.executarConsulta(sql)); }
public DataTable ListarGravadorasPorNome(string nome) { string sql = string.Format($@"select * from tbl_gravadora where nome = '{nome}';"); return(DaoBanco.executarConsulta(sql)); }
// Metodo Utilizado para Listar Produtos public DataTable ListarProdutos() { string sql = string.Format($@"select * from tbl_produto"); return(daoBanco.executarConsulta(sql)); }
// 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)); }