Exemple #1
0
        /// <summary>
        /// Update into XMInventoryLedgerDetail
        /// </summary>
        /// <param name="xminventoryledgerdetail">XMInventoryLedgerDetail</param>
        public void UpdateXMInventoryLedgerDetail(XMInventoryLedgerDetail xminventoryledgerdetail)
        {
            if (xminventoryledgerdetail == null)
            {
                return;
            }

            if (this._context.IsAttached(xminventoryledgerdetail))
            {
                this._context.XMInventoryLedgerDetails.Attach(xminventoryledgerdetail);
            }

            this._context.SaveChanges();
        }
Exemple #2
0
        /// <summary>
        /// Insert into XMInventoryLedgerDetail
        /// </summary>
        /// <param name="xminventoryledgerdetail">XMInventoryLedgerDetail</param>
        public void InsertXMInventoryLedgerDetail(XMInventoryLedgerDetail xminventoryledgerdetail)
        {
            if (xminventoryledgerdetail == null)
            {
                return;
            }

            if (!this._context.IsAttached(xminventoryledgerdetail))
            {
                this._context.XMInventoryLedgerDetails.AddObject(xminventoryledgerdetail);
            }

            this._context.SaveChanges();
        }