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

            if (this._context.IsAttached(xmnickincludeadveringfield))
            {
                this._context.XMNickIncludeAdveringFields.Attach(xmnickincludeadveringfield);
            }

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

            if (!this._context.IsAttached(xmnickincludeadveringfield))
            {
                this._context.XMNickIncludeAdveringFields.AddObject(xmnickincludeadveringfield);
            }

            this._context.SaveChanges();
        }