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

            if (NeptuneHomePageImages.Any())
            {
                dependentObjects.Add(typeof(NeptuneHomePageImage).Name);
            }

            if (NeptunePageImages.Any())
            {
                dependentObjects.Add(typeof(NeptunePageImage).Name);
            }

            if (OnlandVisualTrashAssessmentObservationPhotos.Any())
            {
                dependentObjects.Add(typeof(OnlandVisualTrashAssessmentObservationPhoto).Name);
            }

            if (OnlandVisualTrashAssessmentObservationPhotoStagings.Any())
            {
                dependentObjects.Add(typeof(OnlandVisualTrashAssessmentObservationPhotoStaging).Name);
            }

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

            if (TreatmentBMPAssessmentPhotos.Any())
            {
                dependentObjects.Add(typeof(TreatmentBMPAssessmentPhoto).Name);
            }

            if (TreatmentBMPDocuments.Any())
            {
                dependentObjects.Add(typeof(TreatmentBMPDocument).Name);
            }

            if (TreatmentBMPImages.Any())
            {
                dependentObjects.Add(typeof(TreatmentBMPImage).Name);
            }

            if (WaterQualityManagementPlanDocuments.Any())
            {
                dependentObjects.Add(typeof(WaterQualityManagementPlanDocument).Name);
            }

            if (WaterQualityManagementPlanPhotos.Any())
            {
                dependentObjects.Add(typeof(WaterQualityManagementPlanPhoto).Name);
            }

            if (WaterQualityManagementPlanVerifies.Any())
            {
                dependentObjects.Add(typeof(WaterQualityManagementPlanVerify).Name);
            }
            return(dependentObjects.Distinct().ToList());
        }
Esempio n. 2
0
        /// <summary>
        /// Active Dependent type names of this object
        /// </summary>
        public List <string> DependentObjectNames()
        {
            var dependentObjects = new List <string>();

            if (WaterQualityManagementPlanVerifies.Any())
            {
                dependentObjects.Add(typeof(WaterQualityManagementPlanVerify).Name);
            }
            return(dependentObjects.Distinct().ToList());
        }
Esempio n. 3
0
        /// <summary>
        /// Active Dependent type names of this object
        /// </summary>
        public List <string> DependentObjectNames()
        {
            var dependentObjects = new List <string>();

            if (LoadGeneratingUnits.Any())
            {
                dependentObjects.Add(typeof(LoadGeneratingUnit).Name);
            }

            if (QuickBMPs.Any())
            {
                dependentObjects.Add(typeof(QuickBMP).Name);
            }

            if (SourceControlBMPs.Any())
            {
                dependentObjects.Add(typeof(SourceControlBMP).Name);
            }

            if (TreatmentBMPs.Any())
            {
                dependentObjects.Add(typeof(TreatmentBMP).Name);
            }

            if (WaterQualityManagementPlanDocuments.Any())
            {
                dependentObjects.Add(typeof(WaterQualityManagementPlanDocument).Name);
            }

            if (WaterQualityManagementPlanParcels.Any())
            {
                dependentObjects.Add(typeof(WaterQualityManagementPlanParcel).Name);
            }

            if (WaterQualityManagementPlanVerifies.Any())
            {
                dependentObjects.Add(typeof(WaterQualityManagementPlanVerify).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(WaterQualityManagementPlanVerifies.Any());
 }
Esempio n. 5
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(LoadGeneratingUnits.Any() || QuickBMPs.Any() || SourceControlBMPs.Any() || TreatmentBMPs.Any() || WaterQualityManagementPlanDocuments.Any() || WaterQualityManagementPlanParcels.Any() || WaterQualityManagementPlanVerifies.Any());
 }
Esempio n. 6
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(NeptuneHomePageImages.Any() || NeptunePageImages.Any() || OnlandVisualTrashAssessmentObservationPhotos.Any() || OnlandVisualTrashAssessmentObservationPhotoStagings.Any() || OrganizationsWhereYouAreTheLogoFileResource.Any() || TreatmentBMPAssessmentPhotos.Any() || TreatmentBMPDocuments.Any() || TreatmentBMPImages.Any() || WaterQualityManagementPlanDocuments.Any() || WaterQualityManagementPlanPhotos.Any() || WaterQualityManagementPlanVerifies.Any());
 }