Ejemplo n.º 1
0
        public pays SelectByName(string nomPays)
        {
            DataRow r = _dbal.SelectByField("pays", "nom like '" + nomPays + "'").Rows[0];

            return(new pays((int)r["id"], (string)r["nom"]));
        }
Ejemplo n.º 2
0
        public fromage SelectByName(string nomFromage)
        {
            DataRow r = _dbal.SelectByField("fromage", "nom like '" + nomFromage + "'").Rows[0];

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