/// <summary>
        /// Update into XMOrderInfoProductDetails
        /// </summary>
        /// <param name="xmorderinfoproductdetails">XMOrderInfoProductDetails</param>
        public void UpdateXMOrderInfoProductDetails(XMOrderInfoProductDetails xmorderinfoproductdetails)
        {
            if (xmorderinfoproductdetails == null)
            {
                return;
            }

            if (this._context.IsAttached(xmorderinfoproductdetails))
            {
                this._context.XMOrderInfoProductDetails.Attach(xmorderinfoproductdetails);
            }

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

            if (!this._context.IsAttached(xmorderinfoproductdetails))
            {
                this._context.XMOrderInfoProductDetails.AddObject(xmorderinfoproductdetails);
            }

            this._context.SaveChanges();
        }