예제 #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();
        }
예제 #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();
        }