/// <summary> /// Update into XMStorageProductBarCodeDetail /// </summary> /// <param name="xmstorageproductbarcodedetail">XMStorageProductBarCodeDetail</param> public void UpdateXMStorageProductBarCodeDetail(XMStorageProductBarCodeDetail xmstorageproductbarcodedetail) { if (xmstorageproductbarcodedetail == null) { return; } if (this._context.IsAttached(xmstorageproductbarcodedetail)) { this._context.XMStorageProductBarCodeDetails.Attach(xmstorageproductbarcodedetail); } this._context.SaveChanges(); }
/// <summary> /// Insert into XMStorageProductBarCodeDetail /// </summary> /// <param name="xmstorageproductbarcodedetail">XMStorageProductBarCodeDetail</param> public void InsertXMStorageProductBarCodeDetail(XMStorageProductBarCodeDetail xmstorageproductbarcodedetail) { if (xmstorageproductbarcodedetail == null) { return; } if (!this._context.IsAttached(xmstorageproductbarcodedetail)) { this._context.XMStorageProductBarCodeDetails.AddObject(xmstorageproductbarcodedetail); } this._context.SaveChanges(); }