Ejemplo n.º 1
0
        public List <pays> SelectAll()
        {
            List <pays> listPays = new List <pays>();

            foreach (DataRow r in _dbal.SelectAll("pays").Rows)
            {
                listPays.Add(new pays((int)r["id"], (string)r["nom"]));
            }
            return(listPays);
        }
Ejemplo n.º 2
0
        public List <fromage> SelectAll()
        {
            List <fromage> listFromage = new List <fromage>();

            foreach (DataRow r in _dbal.SelectAll("fromage").Rows)
            {
                listFromage.Add(new fromage((int)r["id"], (string)r["pays_origine"], (string)r["nom"], (string)r["creation"], (string)r["image"], (string)r["dureeAffinage"], (string)r["recette"], (string)r["histoire"]));
            }
            return(listFromage);
        }