Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/AssessmentSectionEntityReadExtensions.cs =================================================================== diff -u -r424e934ab7fcdef2661e3fee605423ee9fd1b489 -r508d720230c5f63bce7f95bddc3b7a04808d267d --- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/AssessmentSectionEntityReadExtensions.cs (.../AssessmentSectionEntityReadExtensions.cs) (revision 424e934ab7fcdef2661e3fee605423ee9fd1b489) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/AssessmentSectionEntityReadExtensions.cs (.../AssessmentSectionEntityReadExtensions.cs) (revision 508d720230c5f63bce7f95bddc3b7a04808d267d) @@ -21,7 +21,12 @@ using System; using System.Linq; + +using Application.Ringtoets.Storage.BinaryConverters; using Application.Ringtoets.Storage.DbContext; + +using Core.Common.Base.Geometry; + using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.HydraRing.Data; using Ringtoets.Integration.Data; @@ -87,10 +92,12 @@ private static void ReadReferenceLine(this AssessmentSectionEntity entity, IAssessmentSection assessmentSection) { - if (entity.ReferenceLinePointEntities.Any()) + if (entity.ReferenceLinePointData != null) { + Point2D[] points = new Point2DBinaryConverter().ToData(entity.ReferenceLinePointData); + assessmentSection.ReferenceLine = new ReferenceLine(); - assessmentSection.ReferenceLine.SetGeometry(entity.ReferenceLinePointEntities.OrderBy(rlpe => rlpe.Order).Select(rlpe => rlpe.Read())); + assessmentSection.ReferenceLine.SetGeometry(points); } }