/// <summary> /// Update into XMNickCustomerMapping /// </summary> /// <param name="xmnickcustomermapping">XMNickCustomerMapping</param> public void UpdateXMNickCustomerMapping(XMNickCustomerMapping xmnickcustomermapping) { if (xmnickcustomermapping == null) { return; } if (this._context.IsAttached(xmnickcustomermapping)) { this._context.XMNickCustomerMappings.Attach(xmnickcustomermapping); } this._context.SaveChanges(); }
/// <summary> /// Insert into XMNickCustomerMapping /// </summary> /// <param name="xmnickcustomermapping">XMNickCustomerMapping</param> public void InsertXMNickCustomerMapping(XMNickCustomerMapping xmnickcustomermapping) { if (xmnickcustomermapping == null) { return; } if (!this._context.IsAttached(xmnickcustomermapping)) { this._context.XMNickCustomerMappings.AddObject(xmnickcustomermapping); } this._context.SaveChanges(); }