예제 #1
0
 public void insert(Pays pays)
 {
     NewDbal.Insert("INSERT INTO pays(id, nom) VALUES(" + pays.Id + ", '" + pays.Nom.Replace("'", "''") + "')");
 }
예제 #2
0
 public void insert(Fromage fromage)
 {
     NewDbal.Insert("INSERT INTO fromage(id,pays_origine_id,nom, creation, image ) VALUES(" + fromage.Id + "," + fromage.Pays_origine_id +
                    ",'" + fromage.Nom + "','" + fromage.Creation + "','" + fromage.Image + "')");
 }