Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Update/Piping/PipingCalculationScenarioUpdateExtensions.cs
===================================================================
diff -u -ra5714fc0488030773fff50dfc82041c6cb9edc2f -r06e4debe3f4a9bdfb38c40b8c00ed013e8f7bb98
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Update/Piping/PipingCalculationScenarioUpdateExtensions.cs (.../PipingCalculationScenarioUpdateExtensions.cs) (revision a5714fc0488030773fff50dfc82041c6cb9edc2f)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Update/Piping/PipingCalculationScenarioUpdateExtensions.cs (.../PipingCalculationScenarioUpdateExtensions.cs) (revision 06e4debe3f4a9bdfb38c40b8c00ed013e8f7bb98)
@@ -43,14 +43,16 @@
/// The piping calculation to update the database entity for.
/// The object keeping track of update operations.
/// The context to obtain the existing entity from.
+ /// The index at which resides
+ /// in its parent container.
/// Thrown when either:
///
/// - is null
/// - is null
///
/// When
/// does not have a corresponding entity in the database.
- internal static void Update(this PipingCalculationScenario calculation, PersistenceRegistry registry, IRingtoetsEntities context)
+ internal static void Update(this PipingCalculationScenario calculation, PersistenceRegistry registry, IRingtoetsEntities context, int order)
{
if (registry == null)
{
@@ -68,6 +70,7 @@
entity.ScenarioContribution = Convert.ToDecimal(calculation.Contribution);
entity.Name = calculation.Name;
entity.Comments = calculation.Comments;
+ entity.Order = order;
SetInputParameters(entity, calculation.InputParameters, registry);
UpdatePipingCalculationOutputs(entity, calculation, registry);