// 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 <CrudeClientEventModel> FetchWithFilter(System.Guid clientEventId, System.Guid clientId, string clientEventTypeRcd, System.Guid userId, System.DateTime dateTime) { var list = new List <CrudeClientEventModel>(); List <CrudeClientEventData> dataList = CrudeClientEventData.FetchWithFilter(clientEventId, clientId, clientEventTypeRcd, userId, dateTime); foreach (CrudeClientEventData data in dataList) { var crudeClientEventBusinessModel = new CrudeClientEventModel(); DataToModel(data, crudeClientEventBusinessModel); list.Add(crudeClientEventBusinessModel); } 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 <CrudeClientEventContract> FetchWithFilter(System.Guid clientEventId, System.Guid clientId, string clientEventTypeRcd, System.Guid userId, System.DateTime dateTime) { var list = new List <CrudeClientEventContract>(); List <CrudeClientEventData> dataList = CrudeClientEventData.FetchWithFilter( clientEventId: clientEventId, clientId: clientId, clientEventTypeRcd: clientEventTypeRcd, userId: userId, dateTime: dateTime ); foreach (CrudeClientEventData data in dataList) { var crudeClientEventContract = new CrudeClientEventContract(); DataToContract(data, crudeClientEventContract); list.Add(crudeClientEventContract); } return(list); }