Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/PersistenceRegistry.cs =================================================================== diff -u -r47c3d018102688c579d1450a890f2c3691bcbcf2 -r1e9309149f9387c4e8b10f6c5f429797220b0ef8 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/PersistenceRegistry.cs (.../PersistenceRegistry.cs) (revision 47c3d018102688c579d1450a890f2c3691bcbcf2) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/PersistenceRegistry.cs (.../PersistenceRegistry.cs) (revision 1e9309149f9387c4e8b10f6c5f429797220b0ef8) @@ -757,6 +757,18 @@ } /// + /// Checks whether a create or update operations has been registered for the given + /// . + /// + /// The to check for. + /// true if the was registered before, false otherwise. + /// Thrown when is null. + internal bool Contains(GrassCoverErosionInwardsCalculation model) + { + return ContainsValue(grassCoverErosionInwardsCalculations, model); + } + + /// /// Obtains the which was registered for /// the given . /// @@ -876,6 +888,23 @@ } /// + /// Obtains the which was + /// registered for the given . + /// + /// The for + /// which a read/update operation has been registered. + /// The constructed . + /// Thrown when is null. + /// Thrown when no create/update operation + /// has been registered for . + /// Use to find out + /// whether a create/update operation has been registered for . + internal GrassCoverErosionInwardsCalculationEntity Get(GrassCoverErosionInwardsCalculation model) + { + return Get(grassCoverErosionInwardsCalculations, model); + } + + /// /// Registers a create or update operation for and the /// that was constructed with the information. ///