Exemplo n.º 1
0
        /// <summary>
        /// Update into XMSaleReturnProductDetails
        /// </summary>
        /// <param name="xmsalereturnproductdetails">XMSaleReturnProductDetails</param>
        public void UpdateXMSaleReturnProductDetails(XMSaleReturnProductDetails xmsalereturnproductdetails)
        {
            if (xmsalereturnproductdetails == null)
            {
                return;
            }

            if (this._context.IsAttached(xmsalereturnproductdetails))
            {
                this._context.XMSaleReturnProductDetails.Attach(xmsalereturnproductdetails);
            }

            this._context.SaveChanges();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Insert into XMSaleReturnProductDetails
        /// </summary>
        /// <param name="xmsalereturnproductdetails">XMSaleReturnProductDetails</param>
        public void InsertXMSaleReturnProductDetails(XMSaleReturnProductDetails xmsalereturnproductdetails)
        {
            if (xmsalereturnproductdetails == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmsalereturnproductdetails))
            {
                this._context.XMSaleReturnProductDetails.AddObject(xmsalereturnproductdetails);
            }

            this._context.SaveChanges();
        }