// fetch all from table into new List of class instances, filtered by any column // links: // docLink: http://sql2x.org/documentationLink/db27658d-4d23-46d7-9970-7bbaef8634b0 public List <CrudeFerryIdentifierModel> FetchWithFilter(System.Guid ferryIdentifierId, System.Guid ferryId, string ferryIdentifierTypeRcd, string ferryIdentifierCode, string stateRcd, System.Guid userId, System.DateTime dateTime) { var list = new List <CrudeFerryIdentifierModel>(); List <CrudeFerryIdentifierData> dataList = CrudeFerryIdentifierData.FetchWithFilter(ferryIdentifierId, ferryId, ferryIdentifierTypeRcd, ferryIdentifierCode, stateRcd, userId, dateTime); foreach (CrudeFerryIdentifierData data in dataList) { var crudeFerryIdentifierBusinessModel = new CrudeFerryIdentifierModel(); DataToModel(data, crudeFerryIdentifierBusinessModel); list.Add(crudeFerryIdentifierBusinessModel); } 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<CrudeFerryIdentifierContract> FetchWithFilter(System.Guid ferryIdentifierId, System.Guid ferryId, string ferryIdentifierTypeRcd, string ferryIdentifierCode, string stateRcd, System.Guid userId, System.DateTime dateTime) { var list = new List<CrudeFerryIdentifierContract>(); List<CrudeFerryIdentifierData> dataList = CrudeFerryIdentifierData.FetchWithFilter( ferryIdentifierId: ferryIdentifierId, ferryId: ferryId, ferryIdentifierTypeRcd: ferryIdentifierTypeRcd, ferryIdentifierCode: ferryIdentifierCode, stateRcd: stateRcd, userId: userId, dateTime: dateTime ); foreach (CrudeFerryIdentifierData data in dataList) { var crudeFerryIdentifierContract = new CrudeFerryIdentifierContract(); DataToContract(data, crudeFerryIdentifierContract); list.Add(crudeFerryIdentifierContract); } return list; }