/// <summary> /// Active Dependent type names of this object /// </summary> public List <string> DependentObjectNames() { var dependentObjects = new List <string>(); if (GeospatialAreas.Any()) { dependentObjects.Add(typeof(GeospatialArea).Name); } if (GeospatialAreaRawDatas.Any()) { dependentObjects.Add(typeof(GeospatialAreaRawData).Name); } if (ProjectCustomGridConfigurations.Any()) { dependentObjects.Add(typeof(ProjectCustomGridConfiguration).Name); } if (ProjectGeospatialAreaTypeNotes.Any()) { dependentObjects.Add(typeof(ProjectGeospatialAreaTypeNote).Name); } if (ProjectGeospatialAreaTypeNoteUpdates.Any()) { dependentObjects.Add(typeof(ProjectGeospatialAreaTypeNoteUpdate).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(GeospatialAreas.Any() || GeospatialAreaRawDatas.Any() || ProjectCustomGridConfigurations.Any() || ProjectGeospatialAreaTypeNotes.Any() || ProjectGeospatialAreaTypeNoteUpdates.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(GeospatialAreas.Any() || GeospatialAreaRawDatas.Any() || GeospatialAreaTypesWhereYouAreTheEsuDpsGeospatialAreaType.Any() || GeospatialAreaTypesWhereYouAreTheMPGGeospatialAreaType.Any() || GeospatialAreaTypesWhereYouAreThePopulationGeospatialAreaType.Any() || ProjectCustomGridConfigurations.Any() || ProjectGeospatialAreaTypeNotes.Any() || ProjectGeospatialAreaTypeNoteUpdates.Any()); }