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

            if (this._context.IsAttached(xmadjustedinfo))
            {
                this._context.XMAdjustedInfoes.Attach(xmadjustedinfo);
            }

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

            if (!this._context.IsAttached(xmadjustedinfo))
            {
                this._context.XMAdjustedInfoes.AddObject(xmadjustedinfo);
            }

            this._context.SaveChanges();
        }