/// <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(); }
/// <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(); }