Exemple #1
0
        public void UpdatePays(Pays unPays)
        {
            Dictionary <string, string> values = new Dictionary <string, string>();

            values["Nom"] = "'" + unPays.Nom.Replace("'", "\\'") + "'";
            mydbal.Update("pays", values, "Id = " + unPays.Id);
        }
Exemple #2
0
        public void UpdateFromage(Fromage unFromage)
        {
            Dictionary <string, string> values = new Dictionary <string, string>();

            values["pays_origine_id"] = unFromage.Pays_origine_id.ToString();
            values["nom"]             = "'" + unFromage.Nom.Replace("'", "\\'") + "'";
            values["creation"]        = "'" + unFromage.Creation.ToString("yyyy'-'MM'-'dd") + "'";
            values["image"]           = "'" + unFromage.Image.Replace("'", "\\'") + "'";
            mydbal.Update("fromage", values, "id = " + unFromage.Id);
        }