/// <summary> /// Gets Address objects from the datasource by CustomerID in the /// CustomerAddress table. Table Address is related to table Customer /// through the (M:N) relationship defined in the CustomerAddress table. /// </summary> /// <param name="transactionManager"><see cref="TransactionManager"/> object</param> /// <param name="start">Row number at which to start reading.</param> /// <param name="pagelen">Number of rows to return.</param> /// <param name="_customerId">Primary key. Foreign key to Customer.CustomerID.</param> /// <param name="count">Number of rows in the DataSource.</param> /// <remarks></remarks> /// <returns>Returns a typed collection of Address objects.</returns> public override TList <Address> GetByCustomerIdFromCustomerAddress(TransactionManager transactionManager, System.Int32 _customerId, int start, int pagelen, out int count) { try { WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices(); proxy.Url = Url; WsProxy.Address[] items = proxy.AddressProvider_GetByCustomerIdFromCustomerAddress(_customerId, start, pagelen, out count); return(Convert(items)); } catch (SoapException soex) { System.Diagnostics.Debug.WriteLine(soex); throw soex; } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex); throw ex; } }
/// <summary> /// Gets Address objects from the datasource by CustomerID in the /// CustomerAddress table. Table Address is related to table Customer /// through the (M:N) relationship defined in the CustomerAddress table. /// </summary> /// <param name="transactionManager"><see cref="TransactionManager"/> object</param> /// <param name="start">Row number at which to start reading.</param> /// <param name="pagelen">Number of rows to return.</param> /// <param name="_customerId">Primary key. Foreign key to Customer.CustomerID.</param> /// <param name="count">Number of rows in the DataSource.</param> /// <remarks></remarks> /// <returns>Returns a typed collection of Address objects.</returns> public override TList<Address> GetByCustomerIdFromCustomerAddress(TransactionManager transactionManager, System.Int32 _customerId, int start, int pagelen, out int count) { try { WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices(); proxy.Url = Url; WsProxy.Address[] items = proxy.AddressProvider_GetByCustomerIdFromCustomerAddress(_customerId, start, pagelen, out count); return Convert(items); } catch(SoapException soex) { System.Diagnostics.Debug.WriteLine(soex); throw soex; } catch(Exception ex) { System.Diagnostics.Debug.WriteLine(ex); throw ex; } }