Пример #1
0
        /// <summary>
        /// Update into XMNickAchieveValue
        /// </summary>
        /// <param name="xmnickachievevalue">XMNickAchieveValue</param>
        public void UpdateXMNickAchieveValue(XMNickAchieveValue xmnickachievevalue)
        {
            if (xmnickachievevalue == null)
            {
                return;
            }

            if (this._context.IsAttached(xmnickachievevalue))
            {
                this._context.XMNickAchieveValue.Attach(xmnickachievevalue);
            }

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

            if (!this._context.IsAttached(xmnickachievevalue))
            {
                this._context.XMNickAchieveValue.AddObject(xmnickachievevalue);
            }

            this._context.SaveChanges();
        }