Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/FailureMechanismEntityReadExtensions.cs =================================================================== diff -u -r5cc8a49cc445a67f425ced8216c772b9170ea517 -rb3af39ba024b8e12fe238d85130697255db28c59 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/FailureMechanismEntityReadExtensions.cs (.../FailureMechanismEntityReadExtensions.cs) (revision 5cc8a49cc445a67f425ced8216c772b9170ea517) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/FailureMechanismEntityReadExtensions.cs (.../FailureMechanismEntityReadExtensions.cs) (revision b3af39ba024b8e12fe238d85130697255db28c59) @@ -23,6 +23,7 @@ using System.Collections.Generic; using System.Linq; using Application.Ringtoets.Storage.DbContext; +using Application.Ringtoets.Storage.Read.ClosingStructures; using Application.Ringtoets.Storage.Read.GrassCoverErosionInwards; using Application.Ringtoets.Storage.Read.GrassCoverErosionOutwards; using Application.Ringtoets.Storage.Read.Piping; @@ -156,7 +157,7 @@ /// Read the and use the information to update a . /// /// The to read into a . - /// + /// The target of the read operation. /// The object keeping track of read operations. internal static void ReadAsGrassCoverErosionInwardsFailureMechanism(this FailureMechanismEntity entity, GrassCoverErosionInwardsFailureMechanism failureMechanism, ReadConversionCollector collector) { @@ -210,7 +211,7 @@ /// Read the and use the information to update a . /// /// The to create for. - /// + /// The target of the read operation. /// The object keeping track of read operations. internal static void ReadAsHeightStructuresFailureMechanism(this FailureMechanismEntity entity, HeightStructuresFailureMechanism failureMechanism, ReadConversionCollector collector) { @@ -237,7 +238,7 @@ /// Read the and use the information to update a . /// /// The to create for. - /// + /// The target of the read operation. /// The object keeping track of read operations. internal static void ReadAsStrengthStabilityLengthwiseConstructionFailureMechanism(this FailureMechanismEntity entity, StrengthStabilityLengthwiseConstructionFailureMechanism failureMechanism, ReadConversionCollector collector) { @@ -264,7 +265,7 @@ /// Read the and use the information to update a . /// /// The to create for. - /// + /// The target of the read operation. /// The object keeping track of read operations. internal static void ReadAsTechnicalInnovationFailureMechanism(this FailureMechanismEntity entity, TechnicalInnovationFailureMechanism failureMechanism, ReadConversionCollector collector) { @@ -291,7 +292,7 @@ /// Read the and use the information to update a . /// /// The to create for. - /// + /// The target of the read operation. /// The object keeping track of read operations. internal static void ReadAsWaterPressureAsphaltCoverFailureMechanism(this FailureMechanismEntity entity, WaterPressureAsphaltCoverFailureMechanism failureMechanism, ReadConversionCollector collector) { @@ -312,23 +313,23 @@ #endregion - #region Closing Structure + #region Closing Structures /// - /// Read the and use the information to update a . + /// Read the and use the information to update a . /// - /// The to create for. - /// + /// The to create for. + /// The target of the read operation. /// The object keeping track of read operations. - internal static void ReadAsClosingStructureFailureMechanism(this FailureMechanismEntity entity, ClosingStructureFailureMechanism failureMechanism, ReadConversionCollector collector) + internal static void ReadAsClosingStructuresFailureMechanism(this FailureMechanismEntity entity, ClosingStructuresFailureMechanism failureMechanism, ReadConversionCollector collector) { entity.ReadCommonFailureMechanismProperties(failureMechanism, collector); - entity.ReadClosingStructureMechanismSectionResults(failureMechanism, collector); + entity.ReadClosingStructuresMechanismSectionResults(failureMechanism, collector); } - - private static void ReadClosingStructureMechanismSectionResults(this FailureMechanismEntity entity, ClosingStructureFailureMechanism failureMechanism, ReadConversionCollector collector) + + private static void ReadClosingStructuresMechanismSectionResults(this FailureMechanismEntity entity, ClosingStructuresFailureMechanism failureMechanism, ReadConversionCollector collector) { - foreach (var sectionResultEntity in entity.FailureMechanismSectionEntities.SelectMany(fms => fms.ClosingStructureSectionResultEntities)) + foreach (var sectionResultEntity in entity.FailureMechanismSectionEntities.SelectMany(fms => fms.ClosingStructuresSectionResultEntities)) { var failureMechanismSection = collector.Get(sectionResultEntity.FailureMechanismSectionEntity); var result = failureMechanism.SectionResults.Single(sr => ReferenceEquals(sr.Section, failureMechanismSection)); @@ -345,7 +346,7 @@ /// Read the and use the information to update a . /// /// The to create for. - /// + /// The target of the read operation. /// The object keeping track of read operations. internal static void ReadAsMacrostabilityInwardsFailureMechanism(this FailureMechanismEntity entity, MacrostabilityInwardsFailureMechanism failureMechanism, ReadConversionCollector collector) { @@ -372,7 +373,7 @@ /// Read the and use the information to update a . /// /// The to create for. - /// + /// The target of the read operation. /// The object keeping track of read operations. internal static void ReadAsMacrostabilityOutwardsFailureMechanism(this FailureMechanismEntity entity, MacrostabilityOutwardsFailureMechanism failureMechanism, ReadConversionCollector collector) { @@ -399,7 +400,7 @@ /// Read the and use the information to update a . /// /// The to create for. - /// + /// The target of the read operation. /// The object keeping track of read operations. internal static void ReadAsWaveImpactAsphaltCoverFailureMechanism(this FailureMechanismEntity entity, WaveImpactAsphaltCoverFailureMechanism failureMechanism, ReadConversionCollector collector) { @@ -440,7 +441,7 @@ /// Read the and use the information to update a . /// /// The to create for. - /// + /// The target of the read operation. /// The object keeping track of read operations. internal static void ReadAsGrassCoverErosionOutwardsFailureMechanism(this FailureMechanismEntity entity, GrassCoverErosionOutwardsFailureMechanism failureMechanism, ReadConversionCollector collector) { @@ -492,7 +493,7 @@ /// Read the and use the information to update a . /// /// The to create for. - /// + /// The target of the read operation. /// The object keeping track of read operations. internal static void ReadAsGrassCoverSlipOffInwardsFailureMechanism(this FailureMechanismEntity entity, GrassCoverSlipOffInwardsFailureMechanism failureMechanism, ReadConversionCollector collector) { @@ -519,7 +520,7 @@ /// Read the and use the information to update a . /// /// The to create for. - /// + /// The target of the read operation. /// The object keeping track of read operations. internal static void ReadAsGrassCoverSlipOffOutwardsFailureMechanism(this FailureMechanismEntity entity, GrassCoverSlipOffOutwardsFailureMechanism failureMechanism, ReadConversionCollector collector) { @@ -546,7 +547,7 @@ /// Read the and use the information to update a . /// /// The to create for. - /// + /// The target of the read operation. /// The object keeping track of read operations. internal static void ReadAsMicrostabilityFailureMechanism(this FailureMechanismEntity entity, MicrostabilityFailureMechanism failureMechanism, ReadConversionCollector collector) { @@ -573,7 +574,7 @@ /// Read the and use the information to update a . /// /// The to create for. - /// + /// The target of the read operation. /// The object keeping track of read operations. internal static void ReadAsPipingStructureFailureMechanism(this FailureMechanismEntity entity, PipingStructureFailureMechanism failureMechanism, ReadConversionCollector collector) { @@ -600,7 +601,7 @@ /// Read the and use the information to update a . /// /// The to create for. - /// + /// The target of the read operation. /// The object keeping track of read operations. internal static void ReadAsDuneErosionFailureMechanism(this FailureMechanismEntity entity, DuneErosionFailureMechanism failureMechanism, ReadConversionCollector collector) { @@ -627,7 +628,7 @@ /// Read the and use the information to update a . /// /// The to create for. - /// + /// The target of the read operation. /// The object keeping track of read operations. internal static void ReadAsStabilityStoneCoverFailureMechanism(this FailureMechanismEntity entity, StabilityStoneCoverFailureMechanism failureMechanism, ReadConversionCollector collector) { @@ -675,7 +676,7 @@ /// Read the and use the information to update a . /// /// The to create for. - /// + /// The target of the read operation. /// The object keeping track of read operations. internal static void ReadAsStrengthStabilityPointConstructionFailureMechanism(this FailureMechanismEntity entity, StrengthStabilityPointConstructionFailureMechanism failureMechanism, ReadConversionCollector collector) {