Example #1
0
        public pays SelectById(int idPays)
        {
            DataRow r = _dbal.SelectById("pays", idPays);

            return(new pays((int)r["id"], (string)r["nom"]));
        }
Example #2
0
        public fromage SelectById(int idFromage)
        {
            DataRow r = _dbal.SelectById("fromage", idFromage);

            return(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"]));
        }