/// <summary> /// Update into XMDeductionSetUp /// </summary> /// <param name="xmdeductionsetup">XMDeductionSetUp</param> public void UpdateXMDeductionSetUp(XMDeductionSetUp xmdeductionsetup) { if (xmdeductionsetup == null) { return; } if (this._context.IsAttached(xmdeductionsetup)) { this._context.XMDeductionSetUps.Attach(xmdeductionsetup); } this._context.SaveChanges(); }
/// <summary> /// Insert into XMDeductionSetUp /// </summary> /// <param name="xmdeductionsetup">XMDeductionSetUp</param> public void InsertXMDeductionSetUp(XMDeductionSetUp xmdeductionsetup) { if (xmdeductionsetup == null) { return; } if (!this._context.IsAttached(xmdeductionsetup)) { this._context.XMDeductionSetUps.AddObject(xmdeductionsetup); } this._context.SaveChanges(); }