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