Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/HeightStructures/HeightStructuresCalculationEntityReadExtensions.cs =================================================================== diff -u -ra843a58b071689fc00a9859b93c28c80ca5931f3 -rfc8042d95d25d97f3e8a85fdd557771f718229f8 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/HeightStructures/HeightStructuresCalculationEntityReadExtensions.cs (.../HeightStructuresCalculationEntityReadExtensions.cs) (revision a843a58b071689fc00a9859b93c28c80ca5931f3) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/HeightStructures/HeightStructuresCalculationEntityReadExtensions.cs (.../HeightStructuresCalculationEntityReadExtensions.cs) (revision fc8042d95d25d97f3e8a85fdd557771f718229f8) @@ -20,13 +20,18 @@ // All rights reserved. using System; +using System.Linq; using Application.Ringtoets.Storage.DbContext; using Core.Common.Base.Data; using Ringtoets.Common.Data.Structures; using Ringtoets.HeightStructures.Data; namespace Application.Ringtoets.Storage.Read.HeightStructures { + /// + /// This class defines extension methods for read operations for a + /// based on the . + /// internal static class HeightStructuresCalculationEntityReadExtensions { /// @@ -37,6 +42,7 @@ /// to create for. /// The object keeping track of read operations. /// A new . + /// Thrown when is null. internal static StructuresCalculation Read(this HeightStructuresCalculationEntity entity, ReadConversionCollector collector) { if (collector == null) @@ -51,6 +57,12 @@ }; ReadInputParameters(calculation.InputParameters, entity, collector); + HeightStructuresOutputEntity output = entity.HeightStructuresOutputEntities.FirstOrDefault(); + if (output != null) + { + calculation.Output = output.Read(); + } + return calculation; }