Example #1
0
        /// <summary>
        /// Update into XMProductionOrderDetails
        /// </summary>
        /// <param name="xmproductionorderdetails">XMProductionOrderDetails</param>
        public void UpdateXMProductionOrderDetails(XMProductionOrderDetails xmproductionorderdetails)
        {
            if (xmproductionorderdetails == null)
            {
                return;
            }

            if (this._context.IsAttached(xmproductionorderdetails))
            {
                this._context.XMProductionOrderDetails.Attach(xmproductionorderdetails);
            }

            this._context.SaveChanges();
        }
Example #2
0
        /// <summary>
        /// Insert into XMProductionOrderDetails
        /// </summary>
        /// <param name="xmproductionorderdetails">XMProductionOrderDetails</param>
        public void InsertXMProductionOrderDetails(XMProductionOrderDetails xmproductionorderdetails)
        {
            if (xmproductionorderdetails == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmproductionorderdetails))
            {
                this._context.XMProductionOrderDetails.AddObject(xmproductionorderdetails);
            }

            this._context.SaveChanges();
        }