Exemplo n.º 1
0
        /// <summary>
        /// Update into XMXLMInventory
        /// </summary>
        /// <param name="xmxlminventory">XMXLMInventory</param>
        public void UpdateXMXLMInventory(XMXLMInventory xmxlminventory)
        {
            if (xmxlminventory == null)
            {
                return;
            }

            if (this._context.IsAttached(xmxlminventory))
            {
                this._context.XMXLMInventories.Attach(xmxlminventory);
            }

            this._context.SaveChanges();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Insert into XMXLMInventory
        /// </summary>
        /// <param name="xmxlminventory">XMXLMInventory</param>
        public void InsertXMXLMInventory(XMXLMInventory xmxlminventory)
        {
            if (xmxlminventory == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmxlminventory))
            {
                this._context.XMXLMInventories.AddObject(xmxlminventory);
            }

            this._context.SaveChanges();
        }