Ejemplo n.º 1
0
        /// <summary>
        /// Update into XMDeliveryDetails
        /// </summary>
        /// <param name="xmdeliverydetails">XMDeliveryDetails</param>
        public void UpdateXMDeliveryDetails(XMDeliveryDetails xmdeliverydetails)
        {
            if (xmdeliverydetails == null)
            {
                return;
            }

            if (this._context.IsAttached(xmdeliverydetails))
            {
                this._context.XMDeliveryDetails.Attach(xmdeliverydetails);
            }

            this._context.SaveChanges();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Insert into XMDeliveryDetails
        /// </summary>
        /// <param name="xmdeliverydetails">XMDeliveryDetails</param>
        public void InsertXMDeliveryDetails(XMDeliveryDetails xmdeliverydetails)
        {
            if (xmdeliverydetails == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmdeliverydetails))
            {
                this._context.XMDeliveryDetails.AddObject(xmdeliverydetails);
            }

            this._context.SaveChanges();
        }