Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/FailureMechanismEntityReadExtensions.cs
===================================================================
diff -u -r54a4372151869517f914727339477256a52090f6 -r9d7965403fbd54e6c89d3536581bf385633dab8e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/FailureMechanismEntityReadExtensions.cs (.../FailureMechanismEntityReadExtensions.cs) (revision 54a4372151869517f914727339477256a52090f6)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/FailureMechanismEntityReadExtensions.cs (.../FailureMechanismEntityReadExtensions.cs) (revision 9d7965403fbd54e6c89d3536581bf385633dab8e)
@@ -141,8 +141,7 @@
metaEntity.ReadProbabilityAssessmentInput(failureMechanism.PipingProbabilityAssessmentInput);
metaEntity.ReadGeneralPipingInput(failureMechanism.GeneralInput);
- string stochasticSoilModelCollectionSourcePath =
- metaEntity.StochasticSoilModelCollectionSourcePath;
+ string stochasticSoilModelCollectionSourcePath = metaEntity.StochasticSoilModelCollectionSourcePath;
if (stochasticSoilModelCollectionSourcePath != null)
{
failureMechanism.StochasticSoilModels.AddRange(entity.StochasticSoilModelEntities
@@ -440,8 +439,7 @@
entity.ReadCommonFailureMechanismProperties(failureMechanism, collector);
entity.ReadClosingStructuresMechanismSectionResults(failureMechanism, collector);
- ClosingStructuresFailureMechanismMetaEntity metaEntity =
- entity.ClosingStructuresFailureMechanismMetaEntities.Single();
+ ClosingStructuresFailureMechanismMetaEntity metaEntity = entity.ClosingStructuresFailureMechanismMetaEntities.Single();
entity.ReadForeshoreProfiles(failureMechanism.ForeshoreProfiles,
metaEntity.ForeshoreProfileCollectionSourcePath,
@@ -649,12 +647,11 @@
entity.ReadCommonFailureMechanismProperties(failureMechanism, collector);
entity.ReadWaveImpactAsphaltCoverMechanismSectionResults(failureMechanism, collector);
- WaveImpactAsphaltCoverFailureMechanismMetaEntity metaEntity =
- entity.WaveImpactAsphaltCoverFailureMechanismMetaEntities.Single();
+ WaveImpactAsphaltCoverFailureMechanismMetaEntity metaEntity = entity.WaveImpactAsphaltCoverFailureMechanismMetaEntities.Single();
entity.ReadForeshoreProfiles(failureMechanism.ForeshoreProfiles, metaEntity.ForeshoreProfileCollectionSourcePath, collector);
ReadWaveImpactAsphaltCoverRootCalculationGroup(entity.CalculationGroupEntity, failureMechanism.WaveConditionsCalculationGroup, collector);
- failureMechanism.GeneralWaveImpactAsphaltCoverInput.DeltaL = (RoundedDouble) entity.WaveImpactAsphaltCoverFailureMechanismMetaEntities.Single().DeltaL;
+ entity.ReadGeneralInput(failureMechanism.GeneralWaveImpactAsphaltCoverInput);
}
private static void ReadWaveImpactAsphaltCoverMechanismSectionResults(this FailureMechanismEntity entity,
@@ -681,6 +678,12 @@
}
}
+ private static void ReadGeneralInput(this FailureMechanismEntity entity, GeneralWaveImpactAsphaltCoverInput generalInput)
+ {
+ GeneralWaveImpactAsphaltCoverInput generalWaveImpactAsphaltCoverInput = entity.WaveImpactAsphaltCoverFailureMechanismMetaEntities.First().Read();
+ generalInput.DeltaL = generalWaveImpactAsphaltCoverInput.DeltaL;
+ }
+
#endregion
#region Grass Cover Erosion Outwards
Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/PipingStructure/PipingStructureSectionResultEntityReadExtensions.cs
===================================================================
diff -u -r54a4372151869517f914727339477256a52090f6 -r9d7965403fbd54e6c89d3536581bf385633dab8e
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/PipingStructure/PipingStructureSectionResultEntityReadExtensions.cs (.../PipingStructureSectionResultEntityReadExtensions.cs) (revision 54a4372151869517f914727339477256a52090f6)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/PipingStructure/PipingStructureSectionResultEntityReadExtensions.cs (.../PipingStructureSectionResultEntityReadExtensions.cs) (revision 9d7965403fbd54e6c89d3536581bf385633dab8e)
@@ -28,20 +28,21 @@
namespace Application.Ringtoets.Storage.Read.PipingStructure
{
///
- /// This class defines extension methods for read operations for a based on the
- /// .
+ /// This class defines extension methods for read operations for a
+ /// based on the .
///
internal static class PipingStructureSectionResultEntityReadExtensions
{
///
- /// Reads the and use the information to update a
- /// .
+ /// Read the and use the information to update the
+ /// .
///
- /// The to create for.
- /// The target of the read operation.
- /// A new .
+ /// The to use to update the
+ /// .
+ /// The to be updated.
/// Thrown when is null.
- internal static void Read(this PipingStructureSectionResultEntity entity, PipingStructureFailureMechanismSectionResult sectionResult)
+ internal static void Read(this PipingStructureSectionResultEntity entity,
+ PipingStructureFailureMechanismSectionResult sectionResult)
{
if (sectionResult == null)
{