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

            if (this._context.IsAttached(xmapplication))
            {
                this._context.XMApplications.Attach(xmapplication);
            }

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

            if (!this._context.IsAttached(xmapplication))
            {
                this._context.XMApplications.AddObject(xmapplication);
            }

            this._context.SaveChanges();
        }