// 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 <CrudeDefaultChangeLogModel> FetchWithFilter(System.Guid defaultChangeLogId, string defaultChangeName, string defaultChangeDescription, System.Guid defaultUserId, System.DateTime dateTime, string defaultChangeLogTypeRcd, System.Guid defaultIssueId) { var list = new List <CrudeDefaultChangeLogModel>(); List <CrudeDefaultChangeLogData> dataList = CrudeDefaultChangeLogData.FetchWithFilter(defaultChangeLogId, defaultChangeName, defaultChangeDescription, defaultUserId, dateTime, defaultChangeLogTypeRcd, defaultIssueId); foreach (CrudeDefaultChangeLogData data in dataList) { var crudeDefaultChangeLogBusinessModel = new CrudeDefaultChangeLogModel(); DataToModel(data, crudeDefaultChangeLogBusinessModel); list.Add(crudeDefaultChangeLogBusinessModel); } 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 <CrudeDefaultChangeLogContract> FetchWithFilter(System.Guid defaultChangeLogId, string defaultChangeName, string defaultChangeDescription, System.Guid defaultUserId, System.DateTime dateTime, string defaultChangeLogTypeRcd, System.Guid defaultIssueId) { var list = new List <CrudeDefaultChangeLogContract>(); List <CrudeDefaultChangeLogData> dataList = CrudeDefaultChangeLogData.FetchWithFilter( defaultChangeLogId: defaultChangeLogId, defaultChangeName: defaultChangeName, defaultChangeDescription: defaultChangeDescription, defaultUserId: defaultUserId, dateTime: dateTime, defaultChangeLogTypeRcd: defaultChangeLogTypeRcd, defaultIssueId: defaultIssueId ); foreach (CrudeDefaultChangeLogData data in dataList) { var crudeDefaultChangeLogContract = new CrudeDefaultChangeLogContract(); DataToContract(data, crudeDefaultChangeLogContract); list.Add(crudeDefaultChangeLogContract); } return(list); }