SqlSpatialServices.CreateWellKnownValue Method
Creates an instance of well-known value.
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.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.(Overrides DbSpatialServices.CreateWellKnownValue(DbGeography).) |
![]() | CreateWellKnownValue(DbGeometry) | Creates an instance of DbGeometryWellKnownValue that represents the specified DbGeometry value using one or both of the standard well-known spatial formats.(Overrides DbSpatialServices.CreateWellKnownValue(DbGeometry).) |
SqlSpatialServices.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.
[SuppressMessageAttribute("Microsoft.Usage", "CA2208:InstantiateArgumentExceptionsCorrectly")] public override 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 .
SqlSpatialServices.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.
[SuppressMessageAttribute("Microsoft.Usage", "CA2208:InstantiateArgumentExceptionsCorrectly")] public override DbGeometryWellKnownValue CreateWellKnownValue( DbGeometry geometryValue )
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 .