Esempio n. 1
0
        public void insert(pays unpays)
        {
            string PaysInsert;

            PaysInsert = ("pays(id, nom) values(" + unpays.Id + ",'" + unpays.Nom.Replace("'", "''") + "')");
            _dbal.Insert(PaysInsert);
        }
Esempio n. 2
0
        public void insert(fromage unfromage)
        {
            string FromageInsert;

            FromageInsert = ("fromage(id, pays_origine, nom, creation, image) values(" + unfromage.Id + "," + unfromage.Pays_origine.Replace("'", "''") + "," + unfromage.Nom.Replace("'", "''") + "," + unfromage.Creation.Replace("'", "''") + "," + unfromage.Image + ")");
            _dbal.Insert(FromageInsert);
        }