/// <summary> /// Update into XMProductCombination /// </summary> /// <param name="xmproductcombination">XMProductCombination</param> public void UpdateXMProductCombination(XMProductCombination xmproductcombination) { if (xmproductcombination == null) { return; } if (this._context.IsAttached(xmproductcombination)) { this._context.XMProductCombinations.Attach(xmproductcombination); } this._context.SaveChanges(); }
/// <summary> /// Insert into XMProductCombination /// </summary> /// <param name="xmproductcombination">XMProductCombination</param> public void InsertXMProductCombination(XMProductCombination xmproductcombination) { if (xmproductcombination == null) { return; } if (!this._context.IsAttached(xmproductcombination)) { this._context.XMProductCombinations.AddObject(xmproductcombination); } this._context.SaveChanges(); }