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

            if (this._context.IsAttached(xmpdinfo))
            {
                this._context.XMPdInfoes.Attach(xmpdinfo);
            }

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

            if (!this._context.IsAttached(xmpdinfo))
            {
                this._context.XMPdInfoes.AddObject(xmpdinfo);
            }

            this._context.SaveChanges();
        }