// copy all rows from a List of serialized data objects to a List of SOAP Contracts, // with a limit on number of returned rows and order by columns, starting at a specific row // links: // docLink: http://sql2x.org/documentationLink/3fe9f1b3-97b6-4f58-a0f2-adfcbd973bfc public List <CrudeClientDocumentTypeRefContract> FetchAllWithLimitAndOffset(int limit, int offset) { var list = new List <CrudeClientDocumentTypeRefContract>(); List <CrudeClientDocumentTypeRefData> dataList = CrudeClientDocumentTypeRefData.FetchAllWithLimitAndOffset(limit, offset); foreach (CrudeClientDocumentTypeRefData crudeClientDocumentTypeRef in dataList) { var contract = new CrudeClientDocumentTypeRefContract(); DataToContract(crudeClientDocumentTypeRef, contract); list.Add(contract); } return(list); }
// copy all rows from a List of serialized data objects in CrudeClientDocumentTypeRefData to a List of SOAP Contracts // links: // docLink: http://sql2x.org/documentationLink/9204c68e-93b8-4c77-af3c-3181985ff75f public List <CrudeClientDocumentTypeRefContract> FetchAll() { var list = new List <CrudeClientDocumentTypeRefContract>(); List <CrudeClientDocumentTypeRefData> dataList = CrudeClientDocumentTypeRefData.FetchAll(); foreach (CrudeClientDocumentTypeRefData crudeClientDocumentTypeRef in dataList) { var contract = new CrudeClientDocumentTypeRefContract(); DataToContract(crudeClientDocumentTypeRef, contract); list.Add(contract); } return(list); }
// fetch all rows from table into new List of Contracts, filtered by any column // links: // docLink: http://sql2x.org/documentationLink/ce01ef4a-5cd0-4e51-b211-9c0a15b791a0 public List <CrudeClientDocumentTypeRefContract> FetchWithFilter(string clientDocumentTypeRcd, string clientDocumentTypeName, string clientDocumentTypeDescription, bool activeFlag, int sortOrder, System.Guid userId, System.DateTime dateTime) { var list = new List <CrudeClientDocumentTypeRefContract>(); List <CrudeClientDocumentTypeRefData> dataList = CrudeClientDocumentTypeRefData.FetchWithFilter( clientDocumentTypeRcd: clientDocumentTypeRcd, clientDocumentTypeName: clientDocumentTypeName, clientDocumentTypeDescription: clientDocumentTypeDescription, activeFlag: activeFlag, sortOrder: sortOrder, userId: userId, dateTime: dateTime ); foreach (CrudeClientDocumentTypeRefData data in dataList) { var crudeClientDocumentTypeRefContract = new CrudeClientDocumentTypeRefContract(); DataToContract(data, crudeClientDocumentTypeRefContract); list.Add(crudeClientDocumentTypeRefContract); } return(list); }