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

            if (this._context.IsAttached(xmapplicationexchange))
            {
                this._context.XMApplicationExchanges.Attach(xmapplicationexchange);
            }

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

            if (!this._context.IsAttached(xmapplicationexchange))
            {
                this._context.XMApplicationExchanges.AddObject(xmapplicationexchange);
            }

            this._context.SaveChanges();
        }