Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/PersistenceRegistry.cs =================================================================== diff -u -r0540405a7dbabf85dc02db30c79c3c58b0faeea6 -r2651fdf110e56d0f48e416fcffc1b4922cff00a5 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/PersistenceRegistry.cs (.../PersistenceRegistry.cs) (revision 0540405a7dbabf85dc02db30c79c3c58b0faeea6) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/PersistenceRegistry.cs (.../PersistenceRegistry.cs) (revision 2651fdf110e56d0f48e416fcffc1b4922cff00a5) @@ -45,12 +45,13 @@ private readonly Dictionary dikeProfiles = CreateDictionary(); private readonly Dictionary foreshoreProfiles = CreateDictionary(); private readonly Dictionary grassCoverErosionInwardsCalculations = CreateDictionary(); - private readonly Dictionary hydraulicLocations = CreateDictionary(); private readonly Dictionary stochasticSoilModels = CreateDictionary(); private readonly Dictionary stochasticSoilProfiles = CreateDictionary(); private readonly Dictionary soilProfiles = CreateDictionary(); private readonly Dictionary surfaceLines = CreateDictionary(); + private readonly Dictionary hydraulicLocations = CreateDictionary(); + /// /// Registers a create or update operation for and the /// that was constructed with the information. @@ -137,6 +138,22 @@ /// Registers a create or update operation for and the /// that was constructed with the information. /// + /// The to be registered. + /// The to be registered. + /// Thrown when either: + /// + /// is null + /// is null + /// + internal void Register(GrassCoverErosionOutwardsHydraulicLocationEntity entity, HydraulicBoundaryLocation model) + { + Register(hydraulicLocations, entity, model); + } + + /// + /// Registers a create or update operation for and the + /// that was constructed with the information. + /// /// The to be registered. /// The to be registered. /// Thrown when either: @@ -385,11 +402,11 @@ /// has been registered for . /// Use to find out /// whether a create/update operation has been registered for . - internal HydraulicLocationEntity Get(HydraulicBoundaryLocation model) + internal T Get(HydraulicBoundaryLocation model) where T : class { - return Get(hydraulicLocations, model); + return Get(hydraulicLocations, model) as T; } - + /// /// Obtains the which was registered for the /// given .