Ejemplo n.º 1
0
        public pays SelectByName(string namePays)
        {
            DataRow nom = _dbal.SelectByField("pays", "nom like '" + namePays + "'").Rows[0];
            pays    un  = new pays((int)nom["id"], (string)nom["nom"]);

            Console.WriteLine(un.Id);

            return(un);
        }
Ejemplo n.º 2
0
        public fromage SelectByName(string namefromage)
        {
            DataRow nom   = _dbal.SelectByField("fromage", "nom like '" + namefromage + "'").Rows[0];
            fromage unfro = new fromage((int)nom["id"], (int)nom["paysorigineid"], (string)nom["nom"], (string)nom["creation"], (string)nom["image"]);

            Console.WriteLine(unfro.Id);

            return(unfro);
        }