/// <summary> /// Dependent type names of this entity /// </summary> public void DeleteChildren(DatabaseEntities dbContext) { foreach (var x in GisUploadSourceOrganizations.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProgramPeople.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectLocations.ToList()) { x.DeleteFull(dbContext); } foreach (var x in ProjectPrograms.ToList()) { x.DeleteFull(dbContext); } foreach (var x in Treatments.ToList()) { x.DeleteFull(dbContext); } }
/// <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 PersonRoles.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 ProgramPeople.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); } foreach (var x in TabularDataImportsWhereYouAreTheLastProcessedPerson.ToList()) { x.DeleteFull(dbContext); } foreach (var x in TabularDataImportsWhereYouAreTheUploadPerson.ToList()) { x.DeleteFull(dbContext); } }