Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/PipingSoilLayerEntityReadExtensions.cs =================================================================== diff -u -ra25ab906f08e5e263ebb35920acc3ee1bdd928df -r686466dda6406ee2c7fb1f33faa60494878b1fc8 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/PipingSoilLayerEntityReadExtensions.cs (.../PipingSoilLayerEntityReadExtensions.cs) (revision a25ab906f08e5e263ebb35920acc3ee1bdd928df) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Read/Piping/PipingSoilLayerEntityReadExtensions.cs (.../PipingSoilLayerEntityReadExtensions.cs) (revision 686466dda6406ee2c7fb1f33faa60494878b1fc8) @@ -21,6 +21,8 @@ using System; using Application.Ringtoets.Storage.DbContext; +using Core.Common.Base.Data; +using Ringtoets.Common.Data.Probabilistics; using Ringtoets.Piping.Primitives; namespace Application.Ringtoets.Storage.Read.Piping @@ -49,13 +51,22 @@ IsAquifer = Convert.ToBoolean(entity.IsAquifer), Color = entity.Color.ToColor(), MaterialName = entity.MaterialName ?? string.Empty, - BelowPhreaticLevelMean = entity.BelowPhreaticLevelMean.ToNullAsNaN(), - BelowPhreaticLevelDeviation = entity.BelowPhreaticLevelDeviation.ToNullAsNaN(), - BelowPhreaticLevelShift = entity.BelowPhreaticLevelShift.ToNullAsNaN(), - DiameterD70Mean = entity.DiameterD70Mean.ToNullAsNaN(), - DiameterD70CoefficientOfVariation = entity.DiameterD70CoefficientOfVariation.ToNullAsNaN(), - PermeabilityMean = entity.PermeabilityMean.ToNullAsNaN(), - PermeabilityCoefficientOfVariation = entity.PermeabilityCoefficientOfVariation.ToNullAsNaN() + BelowPhreaticLevel = new LogNormalDistribution + { + Mean = (RoundedDouble) entity.BelowPhreaticLevelMean.ToNullAsNaN(), + StandardDeviation = (RoundedDouble) entity.BelowPhreaticLevelDeviation.ToNullAsNaN(), + Shift = (RoundedDouble) entity.BelowPhreaticLevelShift.ToNullAsNaN() + }, + DiameterD70 = new VariationCoefficientLogNormalDistribution + { + Mean = (RoundedDouble) entity.DiameterD70Mean.ToNullAsNaN(), + CoefficientOfVariation = (RoundedDouble) entity.DiameterD70CoefficientOfVariation.ToNullAsNaN() + }, + Permeability = new VariationCoefficientLogNormalDistribution + { + Mean = (RoundedDouble) entity.PermeabilityMean.ToNullAsNaN(), + CoefficientOfVariation = (RoundedDouble) entity.PermeabilityCoefficientOfVariation.ToNullAsNaN() + } }; } }