Esempio n. 1
0
        /// <summary>
        /// Active Dependent type names of this object
        /// </summary>
        public List <string> DependentObjectNames()
        {
            var dependentObjects = new List <string>();

            if (GeospatialAreaImages.Any())
            {
                dependentObjects.Add(typeof(GeospatialAreaImage).Name);
            }

            if (GeospatialAreaPerformanceMeasureFixedTargets.Any())
            {
                dependentObjects.Add(typeof(GeospatialAreaPerformanceMeasureFixedTarget).Name);
            }

            if (GeospatialAreaPerformanceMeasureNoTargets.Any())
            {
                dependentObjects.Add(typeof(GeospatialAreaPerformanceMeasureNoTarget).Name);
            }

            if (GeospatialAreaPerformanceMeasureReportingPeriodTargets.Any())
            {
                dependentObjects.Add(typeof(GeospatialAreaPerformanceMeasureReportingPeriodTarget).Name);
            }

            if (NpccSubbasinProvincesWhereYouAreTheSubbasin.Any())
            {
                dependentObjects.Add(typeof(NpccSubbasinProvince).Name);
            }

            if (PersonStewardGeospatialAreas.Any())
            {
                dependentObjects.Add(typeof(PersonStewardGeospatialArea).Name);
            }

            if (ProjectGeospatialAreas.Any())
            {
                dependentObjects.Add(typeof(ProjectGeospatialArea).Name);
            }

            if (ProjectGeospatialAreaUpdates.Any())
            {
                dependentObjects.Add(typeof(ProjectGeospatialAreaUpdate).Name);
            }

            if (SubbasinLiasons.Any())
            {
                dependentObjects.Add(typeof(SubbasinLiason).Name);
            }
            return(dependentObjects.Distinct().ToList());
        }
 /// <summary>
 /// Does this object have any dependent objects? (If it does have dependent objects, these would need to be deleted before this object could be deleted.)
 /// </summary>
 /// <returns></returns>
 public bool HasDependentObjects()
 {
     return(GeospatialAreaImages.Any() || GeospatialAreaPerformanceMeasureFixedTargets.Any() || GeospatialAreaPerformanceMeasureNoTargets.Any() || GeospatialAreaPerformanceMeasureReportingPeriodTargets.Any() || PersonStewardGeospatialAreas.Any() || ProjectGeospatialAreas.Any() || ProjectGeospatialAreaUpdates.Any());
 }
        /// <summary>
        /// Active Dependent type names of this object
        /// </summary>
        public List <string> DependentObjectNames()
        {
            var dependentObjects = new List <string>();

            if (ClassificationsWhereYouAreTheKeyImageFileResourceInfo.Any())
            {
                dependentObjects.Add(typeof(Classification).Name);
            }

            if (CustomPageImages.Any())
            {
                dependentObjects.Add(typeof(CustomPageImage).Name);
            }

            if (DocumentLibraryDocuments.Any())
            {
                dependentObjects.Add(typeof(DocumentLibraryDocument).Name);
            }

            if (FieldDefinitionDataImages.Any())
            {
                dependentObjects.Add(typeof(FieldDefinitionDataImage).Name);
            }

            if (FileResourceDatas.Any())
            {
                dependentObjects.Add(typeof(FileResourceData).Name);
            }

            if (FirmaHomePageImages.Any())
            {
                dependentObjects.Add(typeof(FirmaHomePageImage).Name);
            }

            if (FirmaPageImages.Any())
            {
                dependentObjects.Add(typeof(FirmaPageImage).Name);
            }

            if (GeospatialAreaImages.Any())
            {
                dependentObjects.Add(typeof(GeospatialAreaImage).Name);
            }

            if (OrganizationsWhereYouAreTheLogoFileResourceInfo.Any())
            {
                dependentObjects.Add(typeof(Organization).Name);
            }

            if (OrganizationImages.Any())
            {
                dependentObjects.Add(typeof(OrganizationImage).Name);
            }

            if (PerformanceMeasureImages.Any())
            {
                dependentObjects.Add(typeof(PerformanceMeasureImage).Name);
            }

            if (ProjectAttachmentsWhereYouAreTheAttachment.Any())
            {
                dependentObjects.Add(typeof(ProjectAttachment).Name);
            }

            if (ProjectAttachmentUpdatesWhereYouAreTheAttachment.Any())
            {
                dependentObjects.Add(typeof(ProjectAttachmentUpdate).Name);
            }

            if (ProjectImages.Any())
            {
                dependentObjects.Add(typeof(ProjectImage).Name);
            }

            if (ProjectImageUpdates.Any())
            {
                dependentObjects.Add(typeof(ProjectImageUpdate).Name);
            }

            if (ReportTemplates.Any())
            {
                dependentObjects.Add(typeof(ReportTemplate).Name);
            }

            if (TenantAttributesWhereYouAreTheTenantBannerLogoFileResourceInfo.Any())
            {
                dependentObjects.Add(typeof(TenantAttribute).Name);
            }

            if (TenantAttributesWhereYouAreTheTenantFactSheetLogoFileResourceInfo.Any())
            {
                dependentObjects.Add(typeof(TenantAttribute).Name);
            }

            if (TenantAttributesWhereYouAreTheTenantSquareLogoFileResourceInfo.Any())
            {
                dependentObjects.Add(typeof(TenantAttribute).Name);
            }

            if (TenantAttributesWhereYouAreTheTenantStyleSheetFileResourceInfo.Any())
            {
                dependentObjects.Add(typeof(TenantAttribute).Name);
            }
            return(dependentObjects.Distinct().ToList());
        }
Esempio n. 4
0
 /// <summary>
 /// Does this object have any dependent objects? (If it does have dependent objects, these would need to be deleted before this object could be deleted.)
 /// </summary>
 /// <returns></returns>
 public bool HasDependentObjects()
 {
     return(GeospatialAreaImages.Any() || GeospatialAreaPerformanceMeasureFixedTargets.Any() || GeospatialAreaPerformanceMeasureNoTargets.Any() || GeospatialAreaPerformanceMeasureReportingPeriodTargets.Any() || NpccSubbasinProvincesWhereYouAreTheSubbasin.Any() || PersonStewardGeospatialAreas.Any() || ProjectGeospatialAreas.Any() || ProjectGeospatialAreaUpdates.Any() || SubbasinLiasons.Any());
 }
 /// <summary>
 /// Does this object have any dependent objects? (If it does have dependent objects, these would need to be deleted before this object could be deleted.)
 /// </summary>
 /// <returns></returns>
 public bool HasDependentObjects()
 {
     return(ClassificationsWhereYouAreTheKeyImageFileResourceInfo.Any() || CustomPageImages.Any() || DocumentLibraryDocuments.Any() || FieldDefinitionDataImages.Any() || FileResourceDatas.Any() || FirmaHomePageImages.Any() || FirmaPageImages.Any() || GeospatialAreaImages.Any() || OrganizationsWhereYouAreTheLogoFileResourceInfo.Any() || OrganizationImages.Any() || PerformanceMeasureImages.Any() || ProjectAttachmentsWhereYouAreTheAttachment.Any() || ProjectAttachmentUpdatesWhereYouAreTheAttachment.Any() || ProjectImages.Any() || ProjectImageUpdates.Any() || ReportTemplates.Any() || TenantAttributesWhereYouAreTheTenantBannerLogoFileResourceInfo.Any() || TenantAttributesWhereYouAreTheTenantFactSheetLogoFileResourceInfo.Any() || TenantAttributesWhereYouAreTheTenantSquareLogoFileResourceInfo.Any() || TenantAttributesWhereYouAreTheTenantStyleSheetFileResourceInfo.Any());
 }