Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/HeightStructures/HeightStructuresFailureMechanismSectionResultCreateExtensions.cs =================================================================== diff -u -r11f0867b39150ae5fac83dc178a89fee46d27611 -r08bb51221d82157423573733a9bf43e0191c9b68 --- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/HeightStructures/HeightStructuresFailureMechanismSectionResultCreateExtensions.cs (.../HeightStructuresFailureMechanismSectionResultCreateExtensions.cs) (revision 11f0867b39150ae5fac83dc178a89fee46d27611) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/HeightStructures/HeightStructuresFailureMechanismSectionResultCreateExtensions.cs (.../HeightStructuresFailureMechanismSectionResultCreateExtensions.cs) (revision 08bb51221d82157423573733a9bf43e0191c9b68) @@ -44,13 +44,17 @@ { throw new ArgumentNullException("registry"); } - var heightStructuresSectionResultEntity = new HeightStructuresSectionResultEntity + var sectionResultEntity = new HeightStructuresSectionResultEntity { LayerOne = Convert.ToByte(result.AssessmentLayerOne), LayerThree = result.AssessmentLayerThree.Value.ToNaNAsNull() }; + if (result.Calculation != null) + { + sectionResultEntity.HeightStructuresCalculationEntity = registry.Get(result.Calculation); + } - return heightStructuresSectionResultEntity; + return sectionResultEntity; } } } \ No newline at end of file