Example #1
0
        public List <theme> SelectAll()
        {
            List <theme> listFromage = new List <theme>();

            foreach (DataRow r in _dbal.SelectAll("theme").Rows)
            {
                listFromage.Add(new theme((int)r["idTheme"], (string)r["theme"]));
            }
            return(listFromage);
        }
Example #2
0
        public List <salles> SelectAll()
        {
            List <salles> listSalles = new List <salles>();

            foreach (DataRow r in _dbal.SelectAll("salles").Rows)
            {
                listSalles.Add(new salles((int)r["idSalle"], (string)r["ville"], (int)r["idSalle"]));
            }
            return(listSalles);
        }
Example #3
0
        public List <avis> SelectAll()
        {
            List <avis> listAvis = new List <avis>();

            foreach (DataRow r in _dbal.SelectAll("avis").Rows)
            {
                listAvis.Add(new avis((int)r["idAvis"], (int)r["idClient"], (int)r["idSalle"], (string)r["avis"]));
            }
            return(listAvis);
        }