Esempio n. 1
0
 /// <summary>
 /// Creates a new instance of view KeyInformation.
 /// </summary>
 /// <returns>an instance of <see cref="MSBuildLogsExtended.DataSourceEntities.Solution.KeyInformation"/></returns>
 public static MSBuildLogsExtended.DataSourceEntities.Solution.KeyInformation CreateKeyInformation(
     System.Int32 id, System.String name
     )
 {
     MSBuildLogsExtended.DataSourceEntities.Solution.KeyInformation _retval = new MSBuildLogsExtended.DataSourceEntities.Solution.KeyInformation();
     _retval.Id   = id;
     _retval.Name = name;
     return(_retval);
 }
        /// <summary>
        /// Creates a new instance of view KeyInformation.
        /// </summary>
        /// <returns>an instance of <see cref="MSBuildLogsExtended.DataSourceEntities.Solution.KeyInformation"/></returns>
        public static MSBuildLogsExtended.DataSourceEntities.Solution.KeyInformation CreateKeyInformation(
System.Int32 id
			)
        {
            MSBuildLogsExtended.DataSourceEntities.Solution.KeyInformation _retval = new MSBuildLogsExtended.DataSourceEntities.Solution.KeyInformation();
				_retval.Id = id;
            return _retval;
        }
        public void LoadData(
            bool isToLoadFK_BuildLog_Build = true
            , bool isToLoadSolution_1      = true
            )
        {
            // 1. master on accessory part - Aside UIWorkspaceItemSetting
            var masterEntityResult = MSBuildLogsExtended.CommonBLLIoC.IoCBuild.GetMessageOfDefaultOfByIdentifier(this.CriteriaOfMasterEntity, this.QueryPagingSettingOneRecord, null);

            this.StatusOfMasterEntity = masterEntityResult.BusinessLogicLayerResponseStatus;

            if (masterEntityResult.BusinessLogicLayerResponseStatus == Framework.CommonBLLEntities.BusinessLogicLayerResponseStatus.MessageOK)
            {
                this.MasterEntity = masterEntityResult.Message[0];

                // 2. accessory part - Aside UIWorkspaceItemSetting
                // MSBuildLogsExtended.CommonBLLIoC.IoCSolution
                if (isToLoadSolution_1)
                {
                    this.CriteriaOfSolution_1.SolutionQueryCriteriaByIdentifier.IdByIdentifierOft.IsToCompare    = true;
                    this.CriteriaOfSolution_1.SolutionQueryCriteriaByIdentifier.IdByIdentifierOft.ValueToCompare = this.MasterEntity.SolutionId;
                    var resultSolution_1 = MSBuildLogsExtended.CommonBLLIoC.IoCSolution.GetMessageOfKeyInformationOfByIdentifier(this.CriteriaOfSolution_1, this.QueryPagingSettingOneRecord, null);
                    this.StatusOfSolution_1 = resultSolution_1.BusinessLogicLayerResponseStatus;
                    if (resultSolution_1.BusinessLogicLayerResponseStatus == Framework.CommonBLLEntities.BusinessLogicLayerResponseStatus.MessageOK)
                    {
                        this.Solution_1 = resultSolution_1.Message[0];
                    }
                    else
                    {
                        this.StatusMessageOfSolution_1 = resultSolution_1.GetStatusMessage();
        #if DEBUG
                        this.StatusMessageOfSolution_1 = string.Format("MSBuildLogsExtended.CommonBLLIoC.IoCSolution GetMessageOfKeyInformationOfByIdentifier", this.StatusMessageOfSolution_1, resultSolution_1.ServerErrorMessage);
        #endif
                    }
                }


                // 3. Major part - Article UIWorkspaceItemSetting - EntityReference/FK downtree
                // FK_BuildLog_Build
                if (isToLoadFK_BuildLog_Build)
                {
                    this.CriteriaOfFK_BuildLog_Build.BuildLogQueryCriteriaByFKOnly.IdByFKOnlyOfBuild_1.IsToCompare    = true;
                    this.CriteriaOfFK_BuildLog_Build.BuildLogQueryCriteriaByFKOnly.IdByFKOnlyOfBuild_1.ValueToCompare = this.MasterEntity.Id;
                    var resultFK_BuildLog_Build = MSBuildLogsExtended.CommonBLLIoC.IoCBuildLog.GetMessageOfDefaultOfByFKOnly(this.CriteriaOfFK_BuildLog_Build, this.QueryPagingSetting, null);
                    this.StatusOfFK_BuildLog_Build = resultFK_BuildLog_Build.BusinessLogicLayerResponseStatus;
                    if (resultFK_BuildLog_Build.BusinessLogicLayerResponseStatus == Framework.CommonBLLEntities.BusinessLogicLayerResponseStatus.MessageOK)
                    {
                        this.FK_BuildLog_Build = resultFK_BuildLog_Build.Message;
                    }
                    else
                    {
                        this.StatusMessageOfFK_BuildLog_Build = resultFK_BuildLog_Build.GetStatusMessage();
        #if DEBUG
                        this.StatusMessageOfFK_BuildLog_Build = string.Format("{0} {1}", this.StatusMessageOfFK_BuildLog_Build, resultFK_BuildLog_Build.ServerErrorMessage);
        #endif
                    }
                }


                // 4. Major part - Article UIWorkspaceItemSetting - EntityReference/FK CrossJoin
            }
            else
            {
                this.StatusMessageOfMasterEntity = masterEntityResult.GetStatusMessage();
#if DEBUG
                this.StatusMessageOfMasterEntity = string.Format("{0} {1}", this.StatusMessageOfMasterEntity, masterEntityResult.ServerErrorMessage);
#endif
            }
        }