示例#1
0
        /// <summary>
        /// Update into XMSaleDelivery
        /// </summary>
        /// <param name="xmsaledelivery">XMSaleDelivery</param>
        public void UpdateXMSaleDelivery(XMSaleDelivery xmsaledelivery)
        {
            if (xmsaledelivery == null)
            {
                return;
            }

            if (this._context.IsAttached(xmsaledelivery))
            {
                this._context.XMSaleDeliveries.Attach(xmsaledelivery);
            }

            this._context.SaveChanges();
        }
示例#2
0
        /// <summary>
        /// Insert into XMSaleDelivery
        /// </summary>
        /// <param name="xmsaledelivery">XMSaleDelivery</param>
        public void InsertXMSaleDelivery(XMSaleDelivery xmsaledelivery)
        {
            if (xmsaledelivery == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmsaledelivery))
            {
                this._context.XMSaleDeliveries.AddObject(xmsaledelivery);
            }

            this._context.SaveChanges();
        }