/// <summary> /// Deletes a row from the DataSource. /// </summary> /// <param name="_addressId">Primary key for Address 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 _addressId) { try { // call the proxy WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices(); proxy.Url = Url; bool result = proxy.AddressProvider_Delete(_addressId); return(result); } catch (SoapException soex) { System.Diagnostics.Debug.WriteLine(soex); throw soex; } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex); throw ex; } }
/// <summary> /// Deletes a row from the DataSource. /// </summary> /// <param name="_addressId">Primary key for Address 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 _addressId) { try { // call the proxy WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices(); proxy.Url = Url; bool result = proxy.AddressProvider_Delete(_addressId); return result; } catch(SoapException soex) { System.Diagnostics.Debug.WriteLine(soex); throw soex; } catch(Exception ex) { System.Diagnostics.Debug.WriteLine(ex); throw ex; } }