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