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

            if (this._context.IsAttached(xmorderinfoproductdetails))
            {
                this._context.XMOrderInfoProductDetails.Attach(xmorderinfoproductdetails);
            }

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

            if (!this._context.IsAttached(xmorderinfoproductdetails))
            {
                this._context.XMOrderInfoProductDetails.AddObject(xmorderinfoproductdetails);
            }

            this._context.SaveChanges();
        }