/// <summary> /// Dependent type names of this entity /// </summary> public void DeleteChildren(DatabaseEntities dbContext) { foreach (var x in AgreementPeople.ToList()) { x.DeleteFull(dbContext); } foreach (var x in AuditLogs.ToList()) { x.DeleteFull(dbContext); } foreach (var x in FileResourcesWhereYouAreTheCreatePerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in GisUploadAttemptsWhereYouAreTheGisUploadAttemptCreatePerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in GrantAllocationsWhereYouAreTheGrantManager.ToList()) { x.DeleteFull(dbContext); } foreach (var x in GrantAllocationAwardPersonnelAndBenefitsLineItems.ToList()) { x.DeleteFull(dbContext); } foreach (var x in GrantAllocationAwardTravelLineItems.ToList()) { x.DeleteFull(dbContext); } foreach (var x in GrantAllocationChangeLogsWhereYouAreTheChangePerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in GrantAllocationNotesWhereYouAreTheCreatedByPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in GrantAllocationNotesWhereYouAreTheLastUpdatedByPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in GrantAllocationNoteInternalsWhereYouAreTheCreatedByPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in GrantAllocationNoteInternalsWhereYouAreTheLastUpdatedByPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in GrantAllocationProgramManagers.ToList()) { x.DeleteFull(dbContext); } foreach (var x in GrantModificationNoteInternalsWhereYouAreTheCreatedByPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in GrantModificationNoteInternalsWhereYouAreTheLastUpdatedByPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in GrantNotesWhereYouAreTheCreatedByPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in GrantNotesWhereYouAreTheLastUpdatedByPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in GrantNoteInternalsWhereYouAreTheCreatedByPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in GrantNoteInternalsWhereYouAreTheLastUpdatedByPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in InteractionEventsWhereYouAreTheStaffPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in InteractionEventContacts.ToList()) { x.DeleteFull(dbContext); } foreach (var x in InvoicesWhereYouAreThePreparedByPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in Notifications.ToList()) { x.DeleteFull(dbContext); } foreach (var x in OrganizationsWhereYouAreThePrimaryContactPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in PerformanceMeasureNotesWhereYouAreTheCreatePerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in PerformanceMeasureNotesWhereYouAreTheUpdatePerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in PeopleWhereYouAreTheAddedByPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in PersonAllowedAuthenticators.ToList()) { x.DeleteFull(dbContext); } foreach (var x in PersonStewardOrganizations.ToList()) { x.DeleteFull(dbContext); } foreach (var x in PersonStewardRegions.ToList()) { x.DeleteFull(dbContext); } foreach (var x in PersonStewardTaxonomyBranches.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProgramsWhereYouAreTheProgramCreatePerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProgramsWhereYouAreTheProgramLastUpdatedByPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProgramsWhereYouAreTheProgramPrimaryContactPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectsWhereYouAreTheProposingPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectsWhereYouAreTheReviewedByPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectInternalNotesWhereYouAreTheCreatePerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectInternalNotesWhereYouAreTheUpdatePerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectLocationStagings.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectLocationStagingUpdates.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectNotesWhereYouAreTheCreatePerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectNotesWhereYouAreTheUpdatePerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectNoteUpdatesWhereYouAreTheCreatePerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectNoteUpdatesWhereYouAreTheUpdatePerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectPeople.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectPersonUpdates.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectUpdateBatchesWhereYouAreTheLastUpdatePerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectUpdateHistoriesWhereYouAreTheUpdatePerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in SupportRequestLogsWhereYouAreTheRequestPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in SystemAttributesWhereYouAreThePrimaryContactPerson.ToList()) { x.DeleteFull(dbContext); } }
/// <summary> /// Dependent type names of this entity /// </summary> public void DeleteChildren(DatabaseEntities dbContext) { foreach (var x in PerformanceMeasureActualUpdates.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectCustomAttributeUpdates.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectDocumentUpdates.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectExemptReportingYearUpdates.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectExternalLinkUpdates.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectFundingSourceUpdates.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectGrantAllocationExpenditureUpdates.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectGrantAllocationRequestUpdates.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectImageUpdates.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectLocationStagingUpdates.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectLocationUpdates.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectNoteUpdates.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectOrganizationUpdates.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectPersonUpdates.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectPriorityLandscapeUpdates.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectRegionUpdates.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectUpdates.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectUpdateHistories.ToList()) { x.DeleteFull(dbContext); } }