/// <summary> /// Gets Address objects from the datasource by VendorID in the /// VendorAddress table. Table Address is related to table Vendor /// through the (M:N) relationship defined in the VendorAddress 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="_vendorId">Primary key. Foreign key to Vendor.VendorID.</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> GetByVendorIdFromVendorAddress(TransactionManager transactionManager, System.Int32 _vendorId, int start, int pagelen, out int count) { try { WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices(); proxy.Url = Url; WsProxy.Address[] items = proxy.AddressProvider_GetByVendorIdFromVendorAddress(_vendorId, 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 VendorID in the /// VendorAddress table. Table Address is related to table Vendor /// through the (M:N) relationship defined in the VendorAddress 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="_vendorId">Primary key. Foreign key to Vendor.VendorID.</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> GetByVendorIdFromVendorAddress(TransactionManager transactionManager, System.Int32 _vendorId, int start, int pagelen, out int count) { try { WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices(); proxy.Url = Url; WsProxy.Address[] items = proxy.AddressProvider_GetByVendorIdFromVendorAddress(_vendorId, 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; } }