Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/StochasticSoilModelCreateExtensions.cs =================================================================== diff -u -rae6f0c6b534ca650e160ae6d9c0bc90369d25c68 -r4478bdf539df278f9e2aac0f9fe683c34ac55335 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/StochasticSoilModelCreateExtensions.cs (.../StochasticSoilModelCreateExtensions.cs) (revision ae6f0c6b534ca650e160ae6d9c0bc90369d25c68) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/StochasticSoilModelCreateExtensions.cs (.../StochasticSoilModelCreateExtensions.cs) (revision 4478bdf539df278f9e2aac0f9fe683c34ac55335) @@ -21,6 +21,9 @@ using System; using Application.Ringtoets.Storage.DbContext; + +using Core.Common.Base.Geometry; + using Ringtoets.Piping.Data; namespace Application.Ringtoets.Storage.Create @@ -51,6 +54,7 @@ }; AddEntitiesForStochasticSoilProfiles(model, registry, entity); + AddEntitiesForGeometryPoints(model, entity); registry.Register(entity, model); return entity; @@ -63,5 +67,15 @@ entity.StochasticSoilProfileEntities.Add(stochasticSoilProfile.Create(registry)); } } + + private static void AddEntitiesForGeometryPoints(StochasticSoilModel model, StochasticSoilModelEntity entity) + { + for (int i = 0; i < model.Geometry.Count; i++) + { + Point2D geometryPoint = model.Geometry[i]; + StochasticSoilModelSegmentPointEntity pointEntity = geometryPoint.CreateStochasticSoilModelSegmentPointEntity(i); + entity.StochasticSoilModelSegmentPointEntities.Add(pointEntity); + } + } } } \ No newline at end of file