Beispiel #1
0
        /// <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();
        }
Beispiel #2
0
        /// <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();
        }