protected override Func <IRepositoryQuery <WORKPACK>, IQueryable <WORKPACK_Dashboard> > ConstructMainViewModelProjection() { Func <BASELINE> getBASELINEFunc = loaderCollection.GetObjectFunc <BASELINE>(); Func <PROGRESS> getPROGRESSFunc = loaderCollection.GetObjectFunc <PROGRESS>(); Func <IQueryable <BASELINE_ITEM> > getBASELINE_ITEMSFunc = loaderCollection.GetCollectionFunc <BASELINE_ITEM>(); Func <IQueryable <PROGRESS_ITEM> > getPROGRESS_ITEMSFunc = loaderCollection.GetCollectionFunc <PROGRESS_ITEM>(); Func <IQueryable <RATE> > getRATESFunc = loaderCollection.GetCollectionFunc <RATE>(); return(query => WORKPACK_DashboardQueries.MappingWORKPACKDashboard(query.Where(x => x.GUID_PROJECT == loadPROJECT.GUID), getPROGRESSFunc, getBASELINEFunc, getBASELINE_ITEMSFunc, getPROGRESS_ITEMSFunc, getRATESFunc, mappingType == BaselineMappingSelectionType.Modified)); }
protected override Func <IRepositoryQuery <WORKPACK>, IQueryable <WORKPACK_Dashboard> > ConstructMainViewModelProjection() { return(query => WORKPACK_DashboardQueries.SummarizeWORKPACKDashboard(query, this.projectDashboard)); }