/// <summary>
        /// Update into XMInventoryInfo
        /// </summary>
        /// <param name="xminventoryinfo">XMInventoryInfo</param>
        public void UpdateXMInventoryInfo(XMInventoryInfo xminventoryinfo)
        {
            if (xminventoryinfo == null)
            {
                return;
            }

            if (this._context.IsAttached(xminventoryinfo))
            {
                this._context.XMInventoryInfoes.Attach(xminventoryinfo);
            }

            this._context.SaveChanges();
        }
        /// <summary>
        /// Insert into XMInventoryInfo
        /// </summary>
        /// <param name="xminventoryinfo">XMInventoryInfo</param>
        public void InsertXMInventoryInfo(XMInventoryInfo xminventoryinfo)
        {
            if (xminventoryinfo == null)
            {
                return;
            }

            if (!this._context.IsAttached(xminventoryinfo))
            {
                this._context.XMInventoryInfoes.AddObject(xminventoryinfo);
            }

            this._context.SaveChanges();
        }