Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/StochasticSoilModelEntityReadExtensions.cs =================================================================== diff -u -r67d310178885cdd996f37441492d2331429219a1 -r4478bdf539df278f9e2aac0f9fe683c34ac55335 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/StochasticSoilModelEntityReadExtensions.cs (.../StochasticSoilModelEntityReadExtensions.cs) (revision 67d310178885cdd996f37441492d2331429219a1) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/StochasticSoilModelEntityReadExtensions.cs (.../StochasticSoilModelEntityReadExtensions.cs) (revision 4478bdf539df278f9e2aac0f9fe683c34ac55335) @@ -20,6 +20,8 @@ // All rights reserved. using System; +using System.Linq; + using Application.Ringtoets.Storage.DbContext; using Ringtoets.Piping.Data; @@ -50,6 +52,7 @@ StorageId = entity.StochasticSoilModelEntityId }; entity.ReadStochasticSoilProfiles(model, collector); + entity.ReadSegmentPoints(model); return model; } @@ -61,5 +64,12 @@ model.StochasticSoilProfiles.Add(stochasticSoilProfileEntity.Read(collector)); } } + + private static void ReadSegmentPoints(this StochasticSoilModelEntity entity, StochasticSoilModel model) + { + model.Geometry.AddRange(entity.StochasticSoilModelSegmentPointEntities + .OrderBy(pe => pe.Order) + .Select(pe => pe.Read())); + } } } \ No newline at end of file