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

            if (this._context.IsAttached(xmscalpingapplicationdetails))
            {
                this._context.XMScalpingApplicationDetails.Attach(xmscalpingapplicationdetails);
            }

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

            if (!this._context.IsAttached(xmscalpingapplicationdetails))
            {
                this._context.XMScalpingApplicationDetails.AddObject(xmscalpingapplicationdetails);
            }

            this._context.SaveChanges();
        }