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

            if (this._context.IsAttached(xmadjustedproductdetail))
            {
                this._context.XMAdjustedProductDetails.Attach(xmadjustedproductdetail);
            }

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

            if (!this._context.IsAttached(xmadjustedproductdetail))
            {
                this._context.XMAdjustedProductDetails.AddObject(xmadjustedproductdetail);
            }

            this._context.SaveChanges();
        }