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

            if (this._context.IsAttached(xmpdinfoproductdetails))
            {
                this._context.XMPdInfoProductDetails.Attach(xmpdinfoproductdetails);
            }

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

            if (!this._context.IsAttached(xmpdinfoproductdetails))
            {
                this._context.XMPdInfoProductDetails.AddObject(xmpdinfoproductdetails);
            }

            this._context.SaveChanges();
        }