예제 #1
0
        /// <summary>
        /// Update into XMProductDetails
        /// </summary>
        /// <param name="xmproductdetails">XMProductDetails</param>
        public void UpdateXMProductDetails(XMProductDetails xmproductdetails)
        {
            if (xmproductdetails == null)
            {
                return;
            }

            if (this._context.IsAttached(xmproductdetails))
            {
                this._context.XMProductDetails.Attach(xmproductdetails);
            }

            this._context.SaveChanges();
        }
예제 #2
0
        /// <summary>
        /// Insert into XMProductDetails
        /// </summary>
        /// <param name="xmproductdetails">XMProductDetails</param>
        public void InsertXMProductDetails(XMProductDetails xmproductdetails)
        {
            if (xmproductdetails == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmproductdetails))
            {
                this._context.XMProductDetails.AddObject(xmproductdetails);
            }

            this._context.SaveChanges();
        }