Ejemplo n.º 1
0
        /// <summary>
        /// Update into XMBusinessData
        /// </summary>
        /// <param name="xmbusinessdata">XMBusinessData</param>
        public void UpdateXMBusinessData(XMBusinessData xmbusinessdata)
        {
            if (xmbusinessdata == null)
            {
                return;
            }

            if (this._context.IsAttached(xmbusinessdata))
            {
                this._context.XMBusinessDatas.Attach(xmbusinessdata);
            }

            this._context.SaveChanges();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Insert into XMBusinessData
        /// </summary>
        /// <param name="xmbusinessdata">XMBusinessData</param>
        public void InsertXMBusinessData(XMBusinessData xmbusinessdata)
        {
            if (xmbusinessdata == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmbusinessdata))
            {
                this._context.XMBusinessDatas.AddObject(xmbusinessdata);
            }

            this._context.SaveChanges();
        }