//THIS IS AN INSERT public bool commitInsert(Guid _bouquetId, string _Name, string _Picture, string _Price) { giftShopStoreClassDataContext objBou = new giftShopStoreClassDataContext(); try { brdhc_GiftShopStore objNewBou = new brdhc_GiftShopStore(); objNewBou.BouquetID = _bouquetId; objNewBou.Name = _Name; objNewBou.Picture = _Picture; objNewBou.Price = _Price; objBou.brdhc_GiftShopStores.InsertOnSubmit(objNewBou); objBou.SubmitChanges(); //this will commit the changes return true; //boolean } catch (Exception e) { clsCommon.saveError(e); return false; } }
partial void Deletebrdhc_GiftShopStore(brdhc_GiftShopStore instance);
partial void Updatebrdhc_GiftShopStore(brdhc_GiftShopStore instance);
partial void Insertbrdhc_GiftShopStore(brdhc_GiftShopStore instance);