Exemplo n.º 1
0
        /// <summary>
        /// Update into XMOrderInfo
        /// </summary>
        /// <param name="xmorderinfo">XMOrderInfo</param>
        public void UpdateXMOrderInfo(XMOrderInfo xmorderinfo)
        {
            if (xmorderinfo == null)
            {
                return;
            }

            if (this._context.IsAttached(xmorderinfo))
            {
                this._context.XMOrderInfoes.Attach(xmorderinfo);
            }

            this._context.SaveChanges();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Insert into XMOrderInfo
        /// </summary>
        /// <param name="xmorderinfo">XMOrderInfo</param>
        public void InsertXMOrderInfo(XMOrderInfo xmorderinfo)
        {
            if (xmorderinfo == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmorderinfo))
            {
                this._context.XMOrderInfoes.AddObject(xmorderinfo);
            }

            this._context.SaveChanges();
        }