/// <summary> /// Update into XMAllocateProductBarCodeDetail /// </summary> /// <param name="xmallocateproductbarcodedetail">XMAllocateProductBarCodeDetail</param> public void UpdateXMAllocateProductBarCodeDetail(XMAllocateProductBarCodeDetail xmallocateproductbarcodedetail) { if (xmallocateproductbarcodedetail == null) { return; } if (this._context.IsAttached(xmallocateproductbarcodedetail)) { this._context.XMAllocateProductBarCodeDetails.Attach(xmallocateproductbarcodedetail); } this._context.SaveChanges(); }
/// <summary> /// Insert into XMAllocateProductBarCodeDetail /// </summary> /// <param name="xmallocateproductbarcodedetail">XMAllocateProductBarCodeDetail</param> public void InsertXMAllocateProductBarCodeDetail(XMAllocateProductBarCodeDetail xmallocateproductbarcodedetail) { if (xmallocateproductbarcodedetail == null) { return; } if (!this._context.IsAttached(xmallocateproductbarcodedetail)) { this._context.XMAllocateProductBarCodeDetails.AddObject(xmallocateproductbarcodedetail); } this._context.SaveChanges(); }