DbSpatialServices.CreateWellKnownValue Method
Creates an instance of well known value.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | CreateWellKnownValue(DbGeography) | Creates an instance of DbGeographyWellKnownValue that represents the specified DbGeography value using one or both of the standard well-known spatial formats. |
![]() | CreateWellKnownValue(DbGeometry) | Creates an instance of DbGeometryWellKnownValue that represents the specified DbGeometry value using one or both of the standard well-known spatial formats. |
DbSpatialServices.CreateWellKnownValue Method (DbGeography)
Creates an instance of DbGeographyWellKnownValue that represents the specified DbGeography value using one or both of the standard well-known spatial formats.
public abstract DbGeographyWellKnownValue CreateWellKnownValue( DbGeography geographyValue )
Parameters
- geographyValue
-
Type:
System.Data.Entity.Spatial.DbGeography
The geography value.
Return Value
Type: System.Data.Entity.Spatial.DbGeographyWellKnownValueThe well-known representation of geographyValue, as a new DbGeographyWellKnownValue .
Exception | Condition |
---|---|
ArgumentNullException | geographyValue is null. |
ArgumentException | geographyValue is not compatible with this spatial services implementation. |
DbSpatialServices.CreateWellKnownValue Method (DbGeometry)
Creates an instance of DbGeometryWellKnownValue that represents the specified DbGeometry value using one or both of the standard well-known spatial formats.
Parameters
- geometryValue
-
Type:
System.Data.Entity.Spatial.DbGeometry
The geometry value.
Return Value
Type: System.Data.Entity.Spatial.DbGeometryWellKnownValueThe well-known representation of geometryValue, as a new DbGeometryWellKnownValue .
Exception | Condition |
---|---|
ArgumentNullException | geometryValue is null. |
ArgumentException | geometryValue is not compatible with this spatial services implementation. |