Пример #1
0
        /// <summary>
        /// Update into XMInventoryLedger
        /// </summary>
        /// <param name="xminventoryledger">XMInventoryLedger</param>
        public void UpdateXMInventoryLedger(XMInventoryLedger xminventoryledger)
        {
            if (xminventoryledger == null)
            {
                return;
            }

            if (this._context.IsAttached(xminventoryledger))
            {
                this._context.XMInventoryLedgers.Attach(xminventoryledger);
            }

            this._context.SaveChanges();
        }
Пример #2
0
        /// <summary>
        /// Insert into XMInventoryLedger
        /// </summary>
        /// <param name="xminventoryledger">XMInventoryLedger</param>
        public void InsertXMInventoryLedger(XMInventoryLedger xminventoryledger)
        {
            if (xminventoryledger == null)
            {
                return;
            }

            if (!this._context.IsAttached(xminventoryledger))
            {
                this._context.XMInventoryLedgers.AddObject(xminventoryledger);
            }

            this._context.SaveChanges();
        }