Exemple #1
0
        /// <summary>
        /// Update into XMIncludeFields
        /// </summary>
        /// <param name="xmincludefields">XMIncludeFields</param>
        public void UpdateXMIncludeFields(XMIncludeFields xmincludefields)
        {
            if (xmincludefields == null)
            {
                return;
            }

            if (this._context.IsAttached(xmincludefields))
            {
                this._context.XMIncludeFields.Attach(xmincludefields);
            }

            this._context.SaveChanges();
        }
Exemple #2
0
        /// <summary>
        /// Insert into XMIncludeFields
        /// </summary>
        /// <param name="xmincludefields">XMIncludeFields</param>
        public void InsertXMIncludeFields(XMIncludeFields xmincludefields)
        {
            if (xmincludefields == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmincludefields))
            {
                this._context.XMIncludeFields.AddObject(xmincludefields);
            }

            this._context.SaveChanges();
        }