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