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

            if (this._context.IsAttached(xmcombination))
            {
                this._context.XMCombinations.Attach(xmcombination);
            }

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

            if (!this._context.IsAttached(xmcombination))
            {
                this._context.XMCombinations.AddObject(xmcombination);
            }

            this._context.SaveChanges();
        }