/// <summary> /// Deletes a row from the DataSource. /// </summary> /// <param name="_billOfMaterialsId">Primary key for BillOfMaterials records.. Primary Key.</param> /// <param name="transactionManager"><see cref="TransactionManager"/> object</param> /// <remarks>Deletes based on primary key(s).</remarks> /// <returns>Returns true if operation suceeded.</returns> public override bool Delete(TransactionManager transactionManager, System.Int32 _billOfMaterialsId) { try { // call the proxy WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices(); proxy.Url = Url; bool result = proxy.BillOfMaterialsProvider_Delete(_billOfMaterialsId); return(result); } catch (SoapException soex) { System.Diagnostics.Debug.WriteLine(soex); throw soex; } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex); throw ex; } }