Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/HydraulicBoundaryLocationCreateExtensions.cs
===================================================================
diff -u -r61ced0f990b10b560e2d5700b5851cdb188585db -r37aadd6a7b1a13ef1c8809b3479df0911c6632bb
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/HydraulicBoundaryLocationCreateExtensions.cs (.../HydraulicBoundaryLocationCreateExtensions.cs) (revision 61ced0f990b10b560e2d5700b5851cdb188585db)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/HydraulicBoundaryLocationCreateExtensions.cs (.../HydraulicBoundaryLocationCreateExtensions.cs) (revision 37aadd6a7b1a13ef1c8809b3479df0911c6632bb)
@@ -35,9 +35,10 @@
///
/// The location to create a database entity for.
/// The object keeping track of create operations.
+ /// Index at which this instance resides inside its parent container.
/// A new .
/// Thrown when is null.
- internal static HydraulicLocationEntity Create(this HydraulicBoundaryLocation location, PersistenceRegistry registry)
+ internal static HydraulicLocationEntity Create(this HydraulicBoundaryLocation location, PersistenceRegistry registry, int order)
{
if (registry == null)
{
@@ -55,7 +56,8 @@
LocationX = location.Location.X.ToNaNAsNull(),
LocationY = location.Location.Y.ToNaNAsNull(),
DesignWaterLevel = double.IsNaN(location.DesignWaterLevel) ? (double?) null : location.DesignWaterLevel,
- WaveHeight = double.IsNaN(location.WaveHeight) ? (double?)null : location.WaveHeight
+ WaveHeight = double.IsNaN(location.WaveHeight) ? (double?)null : location.WaveHeight,
+ Order = order
};
registry.Register(entity, location);