Esempio n. 1
0
        public static List <Musica> GetAll()
        {
            string query = "select * from musica";

            BlueORM.Command cmd = new BlueORM.Command(query);
            return(cmd.GetAll <Musica>());
        }
Esempio n. 2
0
        public static List <Genero> GetAll()
        {
            string query = "select * from genero";

            BlueORM.Command cmd = new BlueORM.Command(query);
            return(cmd.GetAll <Genero>());
        }
Esempio n. 3
0
        public static List <Genero> GetAllByMusic(int codMusica)
        {
            string query = @"select g.* from genero g
                                inner join musica_genero mg on g.codGenero = mg.codGenero
                                where mg.codMusica = " + codMusica;

            BlueORM.Command cmd = new BlueORM.Command(query);
            return(cmd.GetAll <Genero>());
        }