/// <summary> /// Update into XMInventoryInfoStatistics /// </summary> /// <param name="xminventoryinfostatistics">XMInventoryInfoStatistics</param> public void UpdateXMInventoryInfoStatistics(XMInventoryInfoStatistics xminventoryinfostatistics) { if (xminventoryinfostatistics == null) { return; } if (this._context.IsAttached(xminventoryinfostatistics)) { this._context.XMInventoryInfoStatistics.Attach(xminventoryinfostatistics); } this._context.SaveChanges(); }
/// <summary> /// Insert into XMInventoryInfoStatistics /// </summary> /// <param name="xminventoryinfostatistics">XMInventoryInfoStatistics</param> public void InsertXMInventoryInfoStatistics(XMInventoryInfoStatistics xminventoryinfostatistics) { if (xminventoryinfostatistics == null) { return; } if (!this._context.IsAttached(xminventoryinfostatistics)) { this._context.XMInventoryInfoStatistics.AddObject(xminventoryinfostatistics); } this._context.SaveChanges(); }