コード例 #1
0
        /// <summary>
        /// Update into XMProductCombination
        /// </summary>
        /// <param name="xmproductcombination">XMProductCombination</param>
        public void UpdateXMProductCombination(XMProductCombination xmproductcombination)
        {
            if (xmproductcombination == null)
            {
                return;
            }

            if (this._context.IsAttached(xmproductcombination))
            {
                this._context.XMProductCombinations.Attach(xmproductcombination);
            }

            this._context.SaveChanges();
        }
コード例 #2
0
        /// <summary>
        /// Insert into XMProductCombination
        /// </summary>
        /// <param name="xmproductcombination">XMProductCombination</param>
        public void InsertXMProductCombination(XMProductCombination xmproductcombination)
        {
            if (xmproductcombination == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmproductcombination))
            {
                this._context.XMProductCombinations.AddObject(xmproductcombination);
            }

            this._context.SaveChanges();
        }