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

            if (ClassificationPerformanceMeasures.Any())
            {
                dependentObjects.Add(typeof(ClassificationPerformanceMeasure).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 (MatchmakerOrganizationPerformanceMeasures.Any())
            {
                dependentObjects.Add(typeof(MatchmakerOrganizationPerformanceMeasure).Name);
            }

            if (PerformanceMeasureActuals.Any())
            {
                dependentObjects.Add(typeof(PerformanceMeasureActual).Name);
            }

            if (PerformanceMeasureActualSubcategoryOptions.Any())
            {
                dependentObjects.Add(typeof(PerformanceMeasureActualSubcategoryOption).Name);
            }

            if (PerformanceMeasureActualSubcategoryOptionUpdates.Any())
            {
                dependentObjects.Add(typeof(PerformanceMeasureActualSubcategoryOptionUpdate).Name);
            }

            if (PerformanceMeasureActualUpdates.Any())
            {
                dependentObjects.Add(typeof(PerformanceMeasureActualUpdate).Name);
            }

            if (PerformanceMeasureExpecteds.Any())
            {
                dependentObjects.Add(typeof(PerformanceMeasureExpected).Name);
            }

            if (PerformanceMeasureExpectedSubcategoryOptions.Any())
            {
                dependentObjects.Add(typeof(PerformanceMeasureExpectedSubcategoryOption).Name);
            }

            if (PerformanceMeasureExpectedSubcategoryOptionUpdates.Any())
            {
                dependentObjects.Add(typeof(PerformanceMeasureExpectedSubcategoryOptionUpdate).Name);
            }

            if (PerformanceMeasureExpectedUpdates.Any())
            {
                dependentObjects.Add(typeof(PerformanceMeasureExpectedUpdate).Name);
            }

            if (PerformanceMeasureFixedTargets.Any())
            {
                dependentObjects.Add(typeof(PerformanceMeasureFixedTarget).Name);
            }

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

            if (PerformanceMeasureNotes.Any())
            {
                dependentObjects.Add(typeof(PerformanceMeasureNote).Name);
            }

            if (PerformanceMeasureReportingPeriodTargets.Any())
            {
                dependentObjects.Add(typeof(PerformanceMeasureReportingPeriodTarget).Name);
            }

            if (PerformanceMeasureSubcategories.Any())
            {
                dependentObjects.Add(typeof(PerformanceMeasureSubcategory).Name);
            }

            if (TaxonomyLeafPerformanceMeasures.Any())
            {
                dependentObjects.Add(typeof(TaxonomyLeafPerformanceMeasure).Name);
            }
            return(dependentObjects.Distinct().ToList());
        }
Exemple #2
0
        /// <summary>
        /// Dependent type names of this entity
        /// </summary>
        public void DeleteChildren(DatabaseEntities dbContext)
        {
            foreach (var x in ClassificationPerformanceMeasures.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in GeospatialAreaPerformanceMeasureFixedTargets.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in GeospatialAreaPerformanceMeasureNoTargets.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in GeospatialAreaPerformanceMeasureReportingPeriodTargets.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in MatchmakerOrganizationPerformanceMeasures.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in PerformanceMeasureActuals.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in PerformanceMeasureActualSubcategoryOptions.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in PerformanceMeasureActualSubcategoryOptionUpdates.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in PerformanceMeasureActualUpdates.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in PerformanceMeasureExpecteds.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in PerformanceMeasureExpectedSubcategoryOptions.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in PerformanceMeasureExpectedSubcategoryOptionUpdates.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in PerformanceMeasureExpectedUpdates.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in PerformanceMeasureFixedTargets.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in PerformanceMeasureImages.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in PerformanceMeasureNotes.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in PerformanceMeasureReportingPeriodTargets.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in PerformanceMeasureSubcategories.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in TaxonomyLeafPerformanceMeasures.ToList())
            {
                x.DeleteFull(dbContext);
            }
        }
Exemple #3
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(ClassificationPerformanceMeasures.Any() || GeospatialAreaPerformanceMeasureFixedTargets.Any() || GeospatialAreaPerformanceMeasureNoTargets.Any() || GeospatialAreaPerformanceMeasureReportingPeriodTargets.Any() || MatchmakerOrganizationPerformanceMeasures.Any() || PerformanceMeasureActuals.Any() || PerformanceMeasureActualSubcategoryOptions.Any() || PerformanceMeasureActualSubcategoryOptionUpdates.Any() || PerformanceMeasureActualUpdates.Any() || PerformanceMeasureExpecteds.Any() || PerformanceMeasureExpectedSubcategoryOptions.Any() || PerformanceMeasureExpectedSubcategoryOptionUpdates.Any() || PerformanceMeasureExpectedUpdates.Any() || PerformanceMeasureFixedTargets.Any() || PerformanceMeasureImages.Any() || PerformanceMeasureNotes.Any() || PerformanceMeasureReportingPeriodTargets.Any() || PerformanceMeasureSubcategories.Any() || TaxonomyLeafPerformanceMeasures.Any());
 }
        /// <summary>
        /// Dependent type names of this entity
        /// </summary>
        public void DeleteChildren(DatabaseEntities dbContext)
        {
            foreach (var x in FundingSources.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in MatchMakerAreaOfInterestLocations.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in MatchmakerOrganizationClassifications.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in MatchmakerOrganizationPerformanceMeasures.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in MatchmakerOrganizationTaxonomyBranches.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in MatchmakerOrganizationTaxonomyLeafs.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in MatchmakerOrganizationTaxonomyTrunks.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in OrganizationBoundaryStagings.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in OrganizationImages.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in OrganizationMatchmakerKeywords.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in People.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in PersonStewardOrganizations.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in ProjectOrganizations.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in ProjectOrganizationUpdates.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in Agreements.ToList())
            {
                x.DeleteFull(dbContext);
            }

            foreach (var x in CostAuthorityObligationRequestsWhereYouAreTheRecipientOrganization.ToList())
            {
                x.DeleteFull(dbContext);
            }
        }
        /// <summary>
        /// Active Dependent type names of this object
        /// </summary>
        public List <string> DependentObjectNames()
        {
            var dependentObjects = new List <string>();

            if (FundingSources.Any())
            {
                dependentObjects.Add(typeof(FundingSource).Name);
            }

            if (MatchMakerAreaOfInterestLocations.Any())
            {
                dependentObjects.Add(typeof(MatchMakerAreaOfInterestLocation).Name);
            }

            if (MatchmakerOrganizationClassifications.Any())
            {
                dependentObjects.Add(typeof(MatchmakerOrganizationClassification).Name);
            }

            if (MatchmakerOrganizationPerformanceMeasures.Any())
            {
                dependentObjects.Add(typeof(MatchmakerOrganizationPerformanceMeasure).Name);
            }

            if (MatchmakerOrganizationTaxonomyBranches.Any())
            {
                dependentObjects.Add(typeof(MatchmakerOrganizationTaxonomyBranch).Name);
            }

            if (MatchmakerOrganizationTaxonomyLeafs.Any())
            {
                dependentObjects.Add(typeof(MatchmakerOrganizationTaxonomyLeaf).Name);
            }

            if (MatchmakerOrganizationTaxonomyTrunks.Any())
            {
                dependentObjects.Add(typeof(MatchmakerOrganizationTaxonomyTrunk).Name);
            }

            if (OrganizationBoundaryStagings.Any())
            {
                dependentObjects.Add(typeof(OrganizationBoundaryStaging).Name);
            }

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

            if (OrganizationMatchmakerKeywords.Any())
            {
                dependentObjects.Add(typeof(OrganizationMatchmakerKeyword).Name);
            }

            if (People.Any())
            {
                dependentObjects.Add(typeof(Person).Name);
            }

            if (PersonStewardOrganizations.Any())
            {
                dependentObjects.Add(typeof(PersonStewardOrganization).Name);
            }

            if (ProjectOrganizations.Any())
            {
                dependentObjects.Add(typeof(ProjectOrganization).Name);
            }

            if (ProjectOrganizationUpdates.Any())
            {
                dependentObjects.Add(typeof(ProjectOrganizationUpdate).Name);
            }

            if (Agreements.Any())
            {
                dependentObjects.Add(typeof(Agreement).Name);
            }

            if (CostAuthorityObligationRequestsWhereYouAreTheRecipientOrganization.Any())
            {
                dependentObjects.Add(typeof(CostAuthorityObligationRequest).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(FundingSources.Any() || MatchMakerAreaOfInterestLocations.Any() || MatchmakerOrganizationClassifications.Any() || MatchmakerOrganizationPerformanceMeasures.Any() || MatchmakerOrganizationTaxonomyBranches.Any() || MatchmakerOrganizationTaxonomyLeafs.Any() || MatchmakerOrganizationTaxonomyTrunks.Any() || OrganizationBoundaryStagings.Any() || OrganizationImages.Any() || OrganizationMatchmakerKeywords.Any() || People.Any() || PersonStewardOrganizations.Any() || ProjectOrganizations.Any() || ProjectOrganizationUpdates.Any() || Agreements.Any() || CostAuthorityObligationRequestsWhereYouAreTheRecipientOrganization.Any());
 }
Exemple #7
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(FundingSources.Any() || MatchMakerAreaOfInterestLocations.Any() || MatchmakerOrganizationClassifications.Any() || MatchmakerOrganizationPerformanceMeasures.Any() || MatchmakerOrganizationTaxonomyBranches.Any() || MatchmakerOrganizationTaxonomyLeafs.Any() || MatchmakerOrganizationTaxonomyTrunks.Any() || OrganizationBoundaryStagings.Any() || OrganizationImages.Any() || OrganizationMatchmakerKeywords.Any() || People.Any() || PersonStewardOrganizations.Any() || ProjectOrganizations.Any() || ProjectOrganizationUpdates.Any());
 }