예제 #1
0
        /// <summary>
        /// Update into XMScalping
        /// </summary>
        /// <param name="xmscalping">XMScalping</param>
        public void UpdateXMScalping(XMScalping xmscalping)
        {
            if (xmscalping == null)
            {
                return;
            }

            if (this._context.IsAttached(xmscalping))
            {
                this._context.XMScalpings.Attach(xmscalping);
            }

            this._context.SaveChanges();
        }
예제 #2
0
        /// <summary>
        /// Insert into XMScalping
        /// </summary>
        /// <param name="xmscalping">XMScalping</param>
        public void InsertXMScalping(XMScalping xmscalping)
        {
            if (xmscalping == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmscalping))
            {
                this._context.XMScalpings.AddObject(xmscalping);
            }

            this._context.SaveChanges();
        }