/// <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(); }
/// <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(); }