/// <summary> /// Update into XMCombination /// </summary> /// <param name="xmcombination">XMCombination</param> public void UpdateXMCombination(XMCombination xmcombination) { if (xmcombination == null) { return; } if (this._context.IsAttached(xmcombination)) { this._context.XMCombinations.Attach(xmcombination); } this._context.SaveChanges(); }
/// <summary> /// Insert into XMCombination /// </summary> /// <param name="xmcombination">XMCombination</param> public void InsertXMCombination(XMCombination xmcombination) { if (xmcombination == null) { return; } if (!this._context.IsAttached(xmcombination)) { this._context.XMCombinations.AddObject(xmcombination); } this._context.SaveChanges(); }