SqlSpatialServices.CreateWellKnownValue Method

 

Creates an instance of well-known value.

Namespace:   System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

NameDescription
System_CAPS_pubmethodCreateWellKnownValue(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).)

System_CAPS_pubmethodCreateWellKnownValue(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.DbGeographyWellKnownValue

The 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.DbGeometryWellKnownValue

The well-known representation of geometryValue, as a new DbGeometryWellKnownValue .