コード例 #1
0
ファイル: DAOpays.cs プロジェクト: tsahed/projetfromage
        public pays SelectById(int idPays)
        {
            DataRow r = _dbal.SelectById("pays", idPays);

            return(new pays((int)r["id"], (string)r["nom"]));
        }
コード例 #2
0
ファイル: DAOfromage.cs プロジェクト: tsahed/projetfromage
        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"]));
        }