public void UpdateExtraField(PsProductExtraFieldShop Obj, string Field, string Value) { if (Core.Global.ExistModuleColumns("ps_product_extra_field_shop", new string[] { Field })) { this.DBPrestashop.ExecuteCommand("UPDATE `ps_product_extra_field_shop` SET `" + Field + "` = '" + Value + "' WHERE `id_product_extra_field` = " + Obj.IdProductExtraField.ToString() + " AND `id_shop` = " + Obj.IdShop.ToString()); } }
public void Add(PsProductExtraFieldShop Obj) { if (!Exist((int)Obj.IdProductExtraField, (int)Obj.IdShop)) { this.DBPrestashop.PsProductExtraFieldShop.InsertOnSubmit(Obj); } this.Save(); }