DbSpatialServices.AsBinary Method
Gets the well-known binary representation of the given value.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | AsBinary(DbGeography) | Gets the well-known binary representation of the given DbGeography value. |
![]() | AsBinary(DbGeometry) | Gets the well-known binary representation of the given DbGeometry value. |
DbSpatialServices.AsBinary Method (DbGeography)
Gets the well-known binary representation of the given DbGeography value.
Parameters
- geographyValue
-
Type:
System.Data.Entity.Spatial.DbGeography
The geography value for which the well-known binary should be generated.
Return Value
Type: System.Byte[]The well-known binary representation of the given DbGeography value.
Exception | Condition |
---|---|
ArgumentNullException | geographyValue is null. |
ArgumentException | geographyValue is not compatible with this spatial services implementation. |
DbSpatialServices.AsBinary Method (DbGeometry)
Gets the well-known binary representation of the given DbGeometry value.
Parameters
- geometryValue
-
Type:
System.Data.Entity.Spatial.DbGeometry
The geometry value for which the well-known binary should be generated.
Return Value
Type: System.Byte[]The well-known binary representation of the given DbGeography value.
Exception | Condition |
---|---|
ArgumentNullException | geometryValue is null. |
ArgumentException | geometryValue is not compatible with this spatial services implementation. |