public void UpdateExtraField(PsProductExtraField Obj, string Field, string Value)
 {
     if (Core.Global.ExistModuleColumns("ps_product_extra_field", new string[] { Field }))
     {
         this.DBPrestashop.ExecuteCommand("UPDATE `ps_product_extra_field` SET `" + Field + "` = '" + Value + "' WHERE `id_product_extra_field` = " + Obj.IdProductExtraField.ToString());
     }
 }
 public void Add(PsProductExtraField Obj)
 {
     if (Exist((int)Obj.IdProduct, (int)Obj.IdShopDefault))
     {
         PsProductExtraField temp = Read((int)Obj.IdProduct, (int)Obj.IdShopDefault);
         Obj.IdProductExtraField = temp.IdProductExtraField;
     }
     else
     {
         Obj.DateAdd = DateTime.Now;
         Obj.DateUpd = Obj.DateAdd;
         this.DBPrestashop.PsProductExtraField.InsertOnSubmit(Obj);
         this.Save();
     }
 }