예제 #1
0
        /// <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();
        }
예제 #2
0
        /// <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();
        }