public static IQueryable <PROJECT_Dashboard> SummarizePROJECTDashboard(IQueryable <PROJECT> PROJECTS, Func <IQueryable <PROGRESS> > getLivePROGRESSESFunc, Func <IQueryable <BASELINE> > getLiveBASELINESFunc, Func <IQueryable <RATE> > getRATESFunc, Func <IQueryable <VARIATION> > getApprovedVARIATIONFunc = null)
        {
            IEnumerable <BASELINE>  LiveBASELINES  = getLiveBASELINESFunc().ToArray().AsEnumerable();
            IEnumerable <PROGRESS>  LivePROGRESSES = getLivePROGRESSESFunc().ToArray().AsEnumerable();
            IEnumerable <VARIATION> ApprovedVARIATIONS;

            if (getApprovedVARIATIONFunc != null)
            {
                ApprovedVARIATIONS = getApprovedVARIATIONFunc().ToArray().AsEnumerable();
            }
            else
            {
                ApprovedVARIATIONS = new List <VARIATION>();
            }

            IEnumerable <RATE>       AllRATES                = getRATESFunc();
            IEnumerable <PROJECT>    localPROJECTS           = PROJECTS.Where(x => x.STATUS == ProjectStatus.Active).ToArray().AsEnumerable(); //process only active PROJECTS
            List <PROJECT_Dashboard> returnPROJECT_Dashboard = new List <PROJECT_Dashboard>();

            IBluePrintsEntitiesUnitOfWork bluePrintsUnitOfWork = BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory().CreateUnitOfWork();
            IP6EntitiesUnitOfWork         p6UnitOfWork         = P6EntitiesUnitOfWorkSource.GetUnitOfWorkFactory().CreateUnitOfWork();

            foreach (PROJECT localPROJECT in localPROJECTS)
            {
                BASELINE currentPROJECTLiveBASELINE = LiveBASELINES.FirstOrDefault(x => x.GUID_PROJECT == localPROJECT.GUID);
                if (currentPROJECTLiveBASELINE == null)
                {
                    continue;
                }

                PROGRESS currentPROJECTLivePROGRESS = LivePROGRESSES.FirstOrDefault(x => x.GUID_PROJECT == localPROJECT.GUID);
                if (currentPROJECTLivePROGRESS == null)
                {
                    continue;
                }

                IQueryable <PROGRESS_ITEM> LivePROGRESS_ITEMS          = currentPROJECTLivePROGRESS.PROGRESS_ITEM.AsQueryable();
                IQueryable <BASELINE_ITEM> LiveBASELINE_ITEMS          = currentPROJECTLiveBASELINE.BASELINE_ITEM.AsQueryable();
                IQueryable <RATE>          RATESByProject              = AllRATES.Where(x => x.GUID_PROJECT == localPROJECT.GUID).AsQueryable();
                IEnumerable <VARIATION>    ApprovedVARIATIONSByProject = ApprovedVARIATIONS.Where(x => x.GUID_PROJECT == localPROJECT.GUID).AsEnumerable();

                IEnumerable <ReportableObject> PROJECTInfos = PROGRESS_ITEMProjectionQueries.JoinRATESAndPROGRESS_ITEMSOnBASELINE_ITEMS(
                    LiveBASELINE_ITEMS, () => currentPROJECTLivePROGRESS, () => currentPROJECTLiveBASELINE, () => LivePROGRESS_ITEMS, () => RATESByProject).ToArray().AsEnumerable();

                PROJECT_Dashboard currentPROJECT_Dashboard = new PROJECT_Dashboard()
                {
                    GUID = localPROJECT.GUID, PROJECT = localPROJECT, VARIATIONS = ApprovedVARIATIONSByProject
                };
                currentPROJECT_Dashboard.InitializeBuilder(PROJECTInfos, currentPROJECTLivePROGRESS, currentPROJECTLiveBASELINE, bluePrintsUnitOfWork, p6UnitOfWork);
                returnPROJECT_Dashboard.Add(currentPROJECT_Dashboard);
            }

            foreach (PROJECT_Dashboard project in returnPROJECT_Dashboard)
            {
                BuildProjectStats summaryManufacturer = new BuildProjectStats();
                summaryManufacturer.Manufacture(project.SummaryBuilder);
            }

            return(returnPROJECT_Dashboard.AsQueryable());
        }
        public PROJECTSummaryBuilder(SummarizableObject summaryObject, IBluePrintsEntitiesUnitOfWork BluePrintsUOW = null, IP6EntitiesUnitOfWork P6UOW = null)
        {
            if (summaryObject.LivePROGRESS == null || summaryObject.LiveBASELINE == null)
            {
                return;
            }

            this.CurrencyConversion = summaryObject.LiveBASELINE.PROJECT.CURRENCYCONVERSION;
            this.SummaryObject      = summaryObject;
            this.SummaryObject.ReportingDataDate = this.SummaryObject.LivePROGRESS.DATA_DATE;

            if (BluePrintsUOW == null)
            {
                BluePrintsUOW = BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory().CreateUnitOfWork();
            }
            else
            {
                this.BluePrintsUnitOfWork = BluePrintsUOW;
            }

            if (P6UOW == null)
            {
                this.P6UnitOfWork = P6EntitiesUnitOfWorkSource.GetUnitOfWorkFactory().CreateUnitOfWork();
            }
            else
            {
                this.P6UnitOfWork = P6UOW;
            }

            this.SummaryObject.IntervalPeriod       = ISupportProgressReportingExtensions.ConvertProgressIntervalToPeriod(SummaryObject.LivePROGRESS);
            this.SummaryObject.FirstAlignedDataDate = ISupportProgressReportingExtensions.GenerateFirstAlignedDataDate(SummaryObject.LivePROGRESS);
        }
        public static PROJECT_Dashboard SummarizeSinglePROJECTDashboard(PROJECT PROJECT, Func <PROGRESS> getPROGRESSFunc, Func <IQueryable <PROGRESS_ITEM> > getPROGRESS_ITEMSFunc, Func <IQueryable <BASELINE_ITEM> > getBASELINE_ITEMSFunc, Func <BASELINE> getBASELINEFunc, Func <IQueryable <RATE> > getRATESFunc)
        {
            IBluePrintsEntitiesUnitOfWork bluePrintsUnitOfWork = BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory().CreateUnitOfWork();
            IP6EntitiesUnitOfWork         p6UnitOfWork         = P6EntitiesUnitOfWorkSource.GetUnitOfWorkFactory().CreateUnitOfWork();

            IEnumerable <ReportableObject> PROJECTInfos = PROGRESS_ITEMProjectionQueries.JoinRATESAndPROGRESS_ITEMSOnBASELINE_ITEMS(
                getBASELINE_ITEMSFunc(), getPROGRESSFunc, getBASELINEFunc, getPROGRESS_ITEMSFunc, getRATESFunc).ToArray().AsEnumerable();

            PROJECT_Dashboard currentPROJECT_Dashboard = new PROJECT_Dashboard()
            {
                GUID = PROJECT.GUID, PROJECT = PROJECT
            };

            currentPROJECT_Dashboard.InitializeBuilder(PROJECTInfos, getPROGRESSFunc(), getBASELINEFunc(), bluePrintsUnitOfWork, p6UnitOfWork);
            BuildProjectStats summaryManufacturer = new BuildProjectStats();

            summaryManufacturer.Manufacture(currentPROJECT_Dashboard.SummaryBuilder);

            return(currentPROJECT_Dashboard);
        }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the REGISTERViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the REGISTERViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected REGISTERViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.REGISTERS, x => x.TITLE)
 {
 }
 /// <summary>
 /// Initializes a new instance of the UOMViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the UOMViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected UOMViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.UOMS, x => x.UOM1)
 {
 }
 /// <summary>
 /// Initializes a new instance of the ESTIMATION_ITEMSViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the ESTIMATION_ITEMSViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected ESTIMATION_ITEMSViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.ESTIMATION_ITEMS, x => x.COMMENTS)
 {
 }
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the SETTINGS_GLOBALSCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the SETTINGS_GLOBALSCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected SETTINGS_GLOBALSCollectionViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.SETTINGS_GLOBALS)
 {
 }
 /// <summary>
 /// Initializes a new instance of the WORKPACK_ASSIGNMENTSCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the WORKPACK_ASSIGNMENTSCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected WORKPACK_ASSIGNMENTSCollectionViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null, Func <IRepositoryQuery <WORKPACK_ASSIGNMENT>, IQueryable <WORKPACK_ASSIGNMENT> > projection = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.WORKPACK_ASSIGNMENTS, projection)
 {
 }
 /// <summary>
 /// Initializes a new instance of the ROLEViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the ROLEViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected ROLEViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.ROLES, x => x.NAME)
 {
 }
Beispiel #10
0
 /// <summary>
 /// Initializes a new instance of the PROGRESS_ITEMSViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the PROGRESS_ITEMSViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected PROGRESS_ITEMSViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.PROGRESS_ITEMS, x => x.EARNED_UNITS)
 {
 }
 /// <summary>
 /// Initializes a new instance of the PROGRESSCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the PROGRESSCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected ISupportCustomDocumentPROGRESSCollectionViewModel(PROJECT project, Func <IRepositoryQuery <PROGRESS>, IQueryable <PROGRESS> > projection = null)
     : base(BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.PROGRESSES, projection)
 {
     thisPROJECT = project;
 }
 /// <summary>
 /// Initializes a new instance of the COMMODITY_CODESCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the COMMODITY_CODESCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected COMMODITY_CODESCollectionViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.COMMODITY_CODES, query => query.OrderBy(x => x.SORTORDER))
 {
     EntitiesAfterDeletionCallBack  = this.EntitiesAfterDeletion;
     EntitiesBeforeDeletionCallBack = this.EntitiesBeforeDeletion;
 }
 static IBluePrintsEntitiesUnitOfWork CreateUnitOfWork()
 {
     return(BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory().CreateUnitOfWork());
 }
Beispiel #14
0
 /// <summary>
 /// Initializes a new instance of the WORKPACKViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the WORKPACKViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected WORKPACKViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.WORKPACKS, x => x.INTERNAL_NAME1)
 {
 }
Beispiel #15
0
 /// <summary>
 /// Initializes a new instance of the PROJECT_REPORTSViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the PROJECT_REPORTSViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected PROJECT_REPORTSViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.PROJECT_REPORTS, x => x.REPORT_TYPE)
 {
 }
 /// <summary>
 /// Initializes a new instance of the SETTINGS_GLOBALSViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the SETTINGS_GLOBALSViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected SETTINGS_GLOBALSViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.SETTINGS_GLOBALS, x => x.REVIEW_PERCENTAGE)
 {
 }
 /// <summary>
 /// Initializes a new instance of the BluePrintsEntitiesViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the BluePrintsEntitiesViewModel type without the POCO proxy factory.
 /// </summary>
 protected BluePrintsEntitiesViewModel()
     : base(BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory())
 {
 }
Beispiel #18
0
 /// <summary>
 /// Initializes a new instance of the ROLE_PERMISSIONSCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the ROLE_PERMISSIONSCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected ROLE_PERMISSIONSProjectionCollectionViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null, Func <IRepositoryQuery <ROLE_PERMISSION>, IQueryable <ROLE_PERMISSIONInfo> > projection = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.ROLE_PERMISSIONS, projection)
 {
 }
Beispiel #19
0
 /// <summary>
 /// Initializes a new instance of the COMMODITYViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the COMMODITYViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected COMMODITYViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.COMMODITIES, x => x.ITEM_DESC)
 {
 }
Beispiel #20
0
 /// <summary>
 /// Initializes a new instance of the ROLE_PERMISSIONSViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the ROLE_PERMISSIONSViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected ROLE_PERMISSIONSViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.ROLE_PERMISSIONS, x => x.PERMISSION)
 {
 }
Beispiel #21
0
 /// <summary>
 /// Initializes a new instance of the VARIATION_ITEMSViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the VARIATION_ITEMSViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected VARIATION_ITEMSViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.VARIATION_ITEMS, x => x.VARIATION_UNITS)
 {
 }
 /// <summary>
 /// Initializes a new instance of the WORKPACK_ASSIGNMENTSCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the WORKPACK_ASSIGNMENTSCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected WORKPACK_ASSIGNMENTSCollectionViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.WORKPACK_ASSIGNMENTS)
 {
 }
 /// <summary>
 /// Initializes a new instance of the USERCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the USERCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected USERCollectionViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.USERS)
 {
 }
 /// <summary>
 /// Initializes a new instance of the BASELINE_ITEMSViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the BASELINE_ITEMSViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected BASELINE_ITEMSViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.BASELINE_ITEMS, x => x.PRIMARY_TITLE)
 {
 }
 /// <summary>
 /// Initializes a new instance of the DEPARTMENTCollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the DEPARTMENTCollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected DEPARTMENTCollectionViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null, Func <IRepositoryQuery <DEPARTMENT>, IQueryable <DEPARTMENT> > projection = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.DEPARTMENTS, projection)
 {
 }
Beispiel #26
0
 /// <summary>
 /// Initializes a new instance of the PHASEViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the PHASEViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected PHASEViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.PHASES, x => x.INTERNAL_NUM)
 {
 }
 /// <summary>
 /// Initializes a new instance of the PROJECTViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the PROJECTViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected PROJECTViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.PROJECTS, x => x.NUMBER)
 {
 }
 /// <summary>
 /// Initializes a new instance of the RATEViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the RATEViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected RATEViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.RATES, x => x.DEPARTMENT)
 {
 }
 /// <summary>
 /// Initializes a new instance of the PHASECollectionViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the PHASECollectionViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected PHASECollectionViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null, Func <IRepositoryQuery <PHASE>, IQueryable <PHASE> > projection = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.PHASES, projection)
 {
 }
 /// <summary>
 /// Initializes a new instance of the WORKPACK_ASSIGNMENTSViewModel class.
 /// This constructor is declared protected to avoid undesired instantiation of the WORKPACK_ASSIGNMENTSViewModel type without the POCO proxy factory.
 /// </summary>
 /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param>
 protected WORKPACK_ASSIGNMENTSViewModel(IUnitOfWorkFactory <IBluePrintsEntitiesUnitOfWork> unitOfWorkFactory = null)
     : base(unitOfWorkFactory ?? BluePrintsEntitiesUnitOfWorkSource.GetUnitOfWorkFactory(), x => x.WORKPACK_ASSIGNMENTS, x => x.P6_ACTIVITYID)
 {
 }