/// <summary>
        /// Update into XMPurchaseProductDetails
        /// </summary>
        /// <param name="xmpurchaseproductdetails">XMPurchaseProductDetails</param>
        public void UpdateXMPurchaseProductDetails(XMPurchaseProductDetails xmpurchaseproductdetails)
        {
            if (xmpurchaseproductdetails == null)
            {
                return;
            }

            if (this._context.IsAttached(xmpurchaseproductdetails))
            {
                this._context.XMPurchaseProductDetails.Attach(xmpurchaseproductdetails);
            }

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

            if (!this._context.IsAttached(xmpurchaseproductdetails))
            {
                this._context.XMPurchaseProductDetails.AddObject(xmpurchaseproductdetails);
            }

            this._context.SaveChanges();
        }