Skip to content

Commit de6ffbc

Browse files
authored
Update EntityFrameworkConvertToDbGeography.cs
Kept old signature to avoid breaking change
1 parent afa0cb1 commit de6ffbc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/GeoJSON.Net.Contrib.EntityFramework/EntityFrameworkConvertToDbGeography.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ namespace GeoJSON.Net.Contrib.EntityFramework
66
{
77
public static partial class EntityFrameworkConvert
88
{
9+
[Obsolete("This method will be removed in future releases, consider migrating now to the newest signature.", false)]
10+
public static DbGeography ToDbGeography(this IGeometryObject geometryObject)
11+
{
12+
return geometryObject.ToDbGeography(4326);
13+
}
14+
915
public static DbGeography ToDbGeography(this IGeometryObject geometryObject, int coordinateSystemId = 4326)
1016
{
1117
return DbGeography.FromBinary(WkbEncode.Encode(geometryObject), coordinateSystemId);

0 commit comments

Comments
 (0)