/// <summary>
        /// Update into XMProductionOrder
        /// </summary>
        /// <param name="xmproductionorder">XMProductionOrder</param>
        public void UpdateXMProductionOrder(XMProductionOrder xmproductionorder)
        {
            if (xmproductionorder == null)
            {
                return;
            }

            if (this._context.IsAttached(xmproductionorder))
            {
                this._context.XMProductionOrders.Attach(xmproductionorder);
            }

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

            if (!this._context.IsAttached(xmproductionorder))
            {
                this._context.XMProductionOrders.AddObject(xmproductionorder);
            }

            this._context.SaveChanges();
        }