Пример #1
0
        /// <summary>
        /// Update into XMExpressListManagement
        /// </summary>
        /// <param name="xmexpresslistmanagement">XMExpressListManagement</param>
        public void UpdateXMExpressListManagement(XMExpressListManagement xmexpresslistmanagement)
        {
            if (xmexpresslistmanagement == null)
            {
                return;
            }

            if (this._context.IsAttached(xmexpresslistmanagement))
            {
                this._context.XMExpressListManagements.Attach(xmexpresslistmanagement);
            }

            this._context.SaveChanges();
        }
Пример #2
0
        /// <summary>
        /// Insert into XMExpressListManagement
        /// </summary>
        /// <param name="xmexpresslistmanagement">XMExpressListManagement</param>
        public void InsertXMExpressListManagement(XMExpressListManagement xmexpresslistmanagement)
        {
            if (xmexpresslistmanagement == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmexpresslistmanagement))
            {
                this._context.XMExpressListManagements.AddObject(xmexpresslistmanagement);
            }

            this._context.SaveChanges();
        }