/// <summary> /// Update into XMOtherMonthlyTarget /// </summary> /// <param name="xmothermonthlytarget">XMOtherMonthlyTarget</param> public void UpdateXMOtherMonthlyTarget(XMOtherMonthlyTarget xmothermonthlytarget) { if (xmothermonthlytarget == null) { return; } if (this._context.IsAttached(xmothermonthlytarget)) { this._context.XMOtherMonthlyTargets.Attach(xmothermonthlytarget); } this._context.SaveChanges(); }
/// <summary> /// Insert into XMOtherMonthlyTarget /// </summary> /// <param name="xmothermonthlytarget">XMOtherMonthlyTarget</param> public void InsertXMOtherMonthlyTarget(XMOtherMonthlyTarget xmothermonthlytarget) { if (xmothermonthlytarget == null) { return; } if (!this._context.IsAttached(xmothermonthlytarget)) { this._context.XMOtherMonthlyTargets.AddObject(xmothermonthlytarget); } this._context.SaveChanges(); }