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

            if (this._context.IsAttached(xmcombinationdetails))
            {
                this._context.XMCombinationDetails.Attach(xmcombinationdetails);
            }

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

            if (!this._context.IsAttached(xmcombinationdetails))
            {
                this._context.XMCombinationDetails.AddObject(xmcombinationdetails);
            }

            this._context.SaveChanges();
        }