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); }
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); }