Example #1
0
        /// <summary>
        /// Update into XMDSR
        /// </summary>
        /// <param name="xmdsr">XMDSR</param>
        public void UpdateXMDSR(XMDSR xmdsr)
        {
            if (xmdsr == null)
            {
                return;
            }

            if (this._context.IsAttached(xmdsr))
            {
                this._context.XMDSRs.Attach(xmdsr);
            }

            this._context.SaveChanges();
        }
Example #2
0
        /// <summary>
        /// Insert into XMDSR
        /// </summary>
        /// <param name="xmdsr">XMDSR</param>
        public void InsertXMDSR(XMDSR xmdsr)
        {
            if (xmdsr == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmdsr))
            {
                this._context.XMDSRs.AddObject(xmdsr);
            }

            this._context.SaveChanges();
        }