public pays SelectById(int idPays) { DataRow id = _dbal.SelectById("pays", idPays); pays deux = new pays((int)id["id"], (string)id["nom"]); Console.WriteLine(deux.Nom); return(deux); }
public fromage SelectById(int idFromage) { DataRow id = _dbal.SelectById("fromage", idFromage); fromage idfro = new fromage((int)id["id"], (int)id["paysorigineid"], (string)id["nom"], (string)id["creation"], (string)id["image"]); Console.WriteLine(idfro.Nom); return(idfro); }