Index: Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Point2DCreateExtensions.cs
===================================================================
diff -u -r75a219c391144ca71a684f46e96e5d3f0c17f170 -r4bb55feac151da4010e81849de3103327f7f40ae
--- Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Point2DCreateExtensions.cs (.../Point2DCreateExtensions.cs) (revision 75a219c391144ca71a684f46e96e5d3f0c17f170)
+++ Application/Ringtoets/src/Application.Ringtoets.Storage/Create/Point2DCreateExtensions.cs (.../Point2DCreateExtensions.cs) (revision 4bb55feac151da4010e81849de3103327f7f40ae)
@@ -46,5 +46,25 @@
return entity;
}
+
+ ///
+ /// Creates a based on the information of the .
+ ///
+ /// The point to create a database entity for.
+ /// A value representing the position of the point in an ordered collection.
+ /// A new .
+ public static FailureMechanismSectionPointEntity CreateFailureMechanismSectionPoint(this Point2D point, int order)
+ {
+ var entity = new FailureMechanismSectionPointEntity
+ {
+ X = Convert.ToDecimal(point.X),
+ Y = Convert.ToDecimal(point.Y),
+ Order = order
+ };
+
+ return entity;
+ }
+
+
}
}
\ No newline at end of file