Beispiel #1
0
        /// <summary>
        /// Update into XMDeliveryProductInventory
        /// </summary>
        /// <param name="xmdeliveryproductinventory">XMDeliveryProductInventory</param>
        public void UpdateXMDeliveryProductInventory(XMDeliveryProductInventory xmdeliveryproductinventory)
        {
            if (xmdeliveryproductinventory == null)
            {
                return;
            }

            if (this._context.IsAttached(xmdeliveryproductinventory))
            {
                this._context.XMDeliveryProductInventories.Attach(xmdeliveryproductinventory);
            }

            this._context.SaveChanges();
        }
Beispiel #2
0
        /// <summary>
        /// Insert into XMDeliveryProductInventory
        /// </summary>
        /// <param name="xmdeliveryproductinventory">XMDeliveryProductInventory</param>
        public void InsertXMDeliveryProductInventory(XMDeliveryProductInventory xmdeliveryproductinventory)
        {
            if (xmdeliveryproductinventory == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmdeliveryproductinventory))
            {
                this._context.XMDeliveryProductInventories.AddObject(xmdeliveryproductinventory);
            }

            this._context.SaveChanges();
        }