/// <summary>
        /// Update into XMSaleInfoProductDetails
        /// </summary>
        /// <param name="xmsaleinfoproductdetails">XMSaleInfoProductDetails</param>
        public void UpdateXMSaleInfoProductDetails(XMSaleInfoProductDetails xmsaleinfoproductdetails)
        {
            if (xmsaleinfoproductdetails == null)
            {
                return;
            }

            if (this._context.IsAttached(xmsaleinfoproductdetails))
            {
                this._context.XMSaleInfoProductDetails.Attach(xmsaleinfoproductdetails);
            }

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

            if (!this._context.IsAttached(xmsaleinfoproductdetails))
            {
                this._context.XMSaleInfoProductDetails.AddObject(xmsaleinfoproductdetails);
            }

            this._context.SaveChanges();
        }