Пример #1
0
        /// <summary>
        /// Update into XMAdvertingField
        /// </summary>
        /// <param name="xmadvertingfield">XMAdvertingField</param>
        public void UpdateXMAdvertingField(XMAdvertingField xmadvertingfield)
        {
            if (xmadvertingfield == null)
                return;

            if (this._context.IsAttached(xmadvertingfield))
                this._context.XMAdvertingFields.Attach(xmadvertingfield);

            this._context.SaveChanges();
        }
Пример #2
0
        /// <summary>
        /// Insert into XMAdvertingField
        /// </summary>
        /// <param name="xmadvertingfield">XMAdvertingField</param>
        public void InsertXMAdvertingField(XMAdvertingField xmadvertingfield)
        {
            if (xmadvertingfield == null)
                return;

            if (!this._context.IsAttached(xmadvertingfield))

                this._context.XMAdvertingFields.AddObject(xmadvertingfield);

            this._context.SaveChanges();
        }