SqlSpatialServices.AsBinary Method
Gets the well-known binary representation of the given value.
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
Name | Description | |
---|---|---|
![]() | AsBinary(DbGeography) | Gets the well-known binary representation of the given DbGeography value.(Overrides DbSpatialServices.AsBinary(DbGeography).) |
![]() | AsBinary(DbGeometry) | Gets the well-known binary representation of the given DbGeometry value.(Overrides DbSpatialServices.AsBinary(DbGeometry).) |
SqlSpatialServices.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.
SqlSpatialServices.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.