Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/PersistenceRegistry.cs =================================================================== diff -u -r34c08dfa1eea11b8a5a879d11087102992b1438c -r508d720230c5f63bce7f95bddc3b7a04808d267d --- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/PersistenceRegistry.cs (.../PersistenceRegistry.cs) (revision 34c08dfa1eea11b8a5a879d11087102992b1438c) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/PersistenceRegistry.cs (.../PersistenceRegistry.cs) (revision 508d720230c5f63bce7f95bddc3b7a04808d267d) @@ -82,7 +82,6 @@ private readonly Dictionary soilProfiles = CreateDictionary(); private readonly Dictionary soilLayers = CreateDictionary(); private readonly Dictionary surfaceLines = CreateDictionary(); - private readonly Dictionary surfaceLinePoints = CreateDictionary(); private readonly Dictionary characteristicPoints = CreateDictionary(); private readonly Dictionary pipingProbabilityAssessmentInputs = CreateDictionary(); private readonly Dictionary probabilisticAssessmentOutputs = CreateDictionary(); @@ -921,36 +920,6 @@ /// Registers a create or update operation for and the /// that was constructed with the information. /// - /// The to be registered. - /// The surfaceline geometry to be registered. - /// Thrown when either: - /// - /// is null - /// is null - /// - internal void Register(SurfaceLinePointEntity entity, Point3D model) - { - Register(surfaceLinePoints, entity, model); - } - - /// - /// Obtains the which was registered for the - /// given . - /// - /// The surfaceline geometry for which - /// a create or update operation has been registered. - /// Thrown when is null. - /// Thrown when no create/update operation - /// has been registered for . - internal SurfaceLinePointEntity GetSurfaceLinePoint(Point3D model) - { - return Get(surfaceLinePoints, model); - } - - /// - /// Registers a create or update operation for and the - /// that was constructed with the information. - /// /// The to be registered. /// The surfaceline geometry corresponding /// to the characteristic point data to be registered. @@ -1165,11 +1134,6 @@ surfaceLines[entity].StorageId = entity.SurfaceLineEntityId; } - foreach (var entity in surfaceLinePoints.Keys) - { - surfaceLinePoints[entity].StorageId = entity.SurfaceLinePointEntityId; - } - foreach (var entity in pipingProbabilityAssessmentInputs.Keys) { pipingProbabilityAssessmentInputs[entity].StorageId = entity.PipingFailureMechanismMetaEntityId; @@ -1181,7 +1145,7 @@ } // CharacteristicPoints do not really have a 'identity' within the object-model. - // As such, no need to copy StorageId. This is already covered by surfaceLinePoints. + // As such, no need to copy StorageId. } /// @@ -1586,17 +1550,6 @@ } dbContext.SurfaceLineEntities.RemoveRange(orphanedSurfaceLineEntities); - var orphanedSurfaceLinePointEntities = new List(); - foreach (SurfaceLinePointEntity surfaceLinePointEntity in dbContext.SurfaceLinePointEntities - .Where(e => e.SurfaceLinePointEntityId > 0)) - { - if (!surfaceLinePoints.ContainsKey(surfaceLinePointEntity)) - { - orphanedSurfaceLinePointEntities.Add(surfaceLinePointEntity); - } - } - dbContext.SurfaceLinePointEntities.RemoveRange(orphanedSurfaceLinePointEntities); - var orphanedCharacteristicPointEntities = new List(); foreach (CharacteristicPointEntity characteristicPointEntity in dbContext.CharacteristicPointEntities .Where(e => e.CharacteristicPointEntityId > 0))