/// <summary>
        /// Update into XMAllocateProductDetails
        /// </summary>
        /// <param name="xmallocateproductdetails">XMAllocateProductDetails</param>
        public void UpdateXMAllocateProductDetails(XMAllocateProductDetails xmallocateproductdetails)
        {
            if (xmallocateproductdetails == null)
            {
                return;
            }

            if (this._context.IsAttached(xmallocateproductdetails))
            {
                this._context.XMAllocateProductDetails.Attach(xmallocateproductdetails);
            }

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

            if (!this._context.IsAttached(xmallocateproductdetails))
            {
                this._context.XMAllocateProductDetails.AddObject(xmallocateproductdetails);
            }

            this._context.SaveChanges();
        }