Beispiel #1
0
        /// <summary>
        /// Update into XMWareHouses
        /// </summary>
        /// <param name="xmwarehouses">XMWareHouses</param>
        public void UpdateXMWareHouses(XMWareHouses xmwarehouses)
        {
            if (xmwarehouses == null)
            {
                return;
            }

            if (this._context.IsAttached(xmwarehouses))
            {
                this._context.XMWareHouses.Attach(xmwarehouses);
            }

            this._context.SaveChanges();
        }
Beispiel #2
0
        /// <summary>
        /// Insert into XMWareHouses
        /// </summary>
        /// <param name="xmwarehouses">XMWareHouses</param>
        public void InsertXMWareHouses(XMWareHouses xmwarehouses)
        {
            if (xmwarehouses == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmwarehouses))
            {
                this._context.XMWareHouses.AddObject(xmwarehouses);
            }

            this._context.SaveChanges();
        }