DbSpatialServices.CreateGeometry Method (DbSpatialServices, Object)
This method is intended for use by derived implementations of GeometryFromProviderValue after suitable validation of the specified provider value to ensure it is suitable for use with the derived implementation.
Assembly: EntityFramework (in EntityFramework.dll)
protected static DbGeometry CreateGeometry( DbSpatialServices spatialServices, object providerValue )
Parameters
- spatialServices
-
Type:
System.Data.Entity.Spatial.DbSpatialServices
The spatial services instance that the returned DbGeometry value will depend on for its implementation of spatial functionality.
- providerValue
-
Type:
System.Object
A provider value.
Return Value
Type: System.Data.Entity.Spatial.DbGeometryA new DbGeometry instance that contains the specified providerValue and uses the specified spatialServices as its spatial implementation.