/// <summary>
        /// Update into XMOrderInfoPlanRecord
        /// </summary>
        /// <param name="xmorderinfoplanrecord">XMOrderInfoPlanRecord</param>
        public void UpdateXMOrderInfoPlanRecord(XMOrderInfoPlanRecord xmorderinfoplanrecord)
        {
            if (xmorderinfoplanrecord == null)
            {
                return;
            }

            if (this._context.IsAttached(xmorderinfoplanrecord))
            {
                this._context.XMOrderInfoPlanRecords.Attach(xmorderinfoplanrecord);
            }

            this._context.SaveChanges();
        }
        /// <summary>
        /// Insert into XMOrderInfoPlanRecord
        /// </summary>
        /// <param name="xmorderinfoplanrecord">XMOrderInfoPlanRecord</param>
        public void InsertXMOrderInfoPlanRecord(XMOrderInfoPlanRecord xmorderinfoplanrecord)
        {
            if (xmorderinfoplanrecord == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmorderinfoplanrecord))
            {
                this._context.XMOrderInfoPlanRecords.AddObject(xmorderinfoplanrecord);
            }

            this._context.SaveChanges();
        }