Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/RingtoetsProjectCreateExtensions.cs =================================================================== diff -u -rc312034c7478db99d3c2ef96b1c351df806e8d21 -r1d86c8daf73d71b72c7a105b5f564ae7480a8d7f --- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/RingtoetsProjectCreateExtensions.cs (.../RingtoetsProjectCreateExtensions.cs) (revision c312034c7478db99d3c2ef96b1c351df806e8d21) +++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/RingtoetsProjectCreateExtensions.cs (.../RingtoetsProjectCreateExtensions.cs) (revision 1d86c8daf73d71b72c7a105b5f564ae7480a8d7f) @@ -57,9 +57,10 @@ private static void AddEntitiesForAssessmentSections(RingtoetsProject project, ProjectEntity entity, PersistenceRegistry registry) { - foreach (var result in project.AssessmentSections) + for (int index = 0; index < project.AssessmentSections.Count; index++) { - entity.AssessmentSectionEntities.Add(result.Create(registry)); + AssessmentSection assessmentSection = project.AssessmentSections[index]; + entity.AssessmentSectionEntities.Add(assessmentSection.Create(registry, index)); } } }