Ejemplo n.º 1
0
        /// <summary>
        /// Update into XMScalpingApplication
        /// </summary>
        /// <param name="xmscalpingapplication">XMScalpingApplication</param>
        public void UpdateXMScalpingApplication(XMScalpingApplication xmscalpingapplication)
        {
            if (xmscalpingapplication == null)
            {
                return;
            }

            if (this._context.IsAttached(xmscalpingapplication))
            {
                this._context.XMScalpingApplications.Attach(xmscalpingapplication);
            }

            this._context.SaveChanges();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Insert into XMScalpingApplication
        /// </summary>
        /// <param name="xmscalpingapplication">XMScalpingApplication</param>
        public void InsertXMScalpingApplication(XMScalpingApplication xmscalpingapplication)
        {
            if (xmscalpingapplication == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmscalpingapplication))
            {
                this._context.XMScalpingApplications.AddObject(xmscalpingapplication);
            }

            this._context.SaveChanges();
        }