DbSpatialServices.CreateGeography Method (DbSpatialServices, Object)
This method is intended for use by derived implementations of GeographyFromProviderValue 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 DbGeography CreateGeography( DbSpatialServices spatialServices, object providerValue )
Parameters
- spatialServices
-
Type:
System.Data.Entity.Spatial.DbSpatialServices
The spatial services instance that the returned DbGeography value will depend on for its implementation of spatial functionality.
- providerValue
-
Type:
System.Object
The provider value.
Return Value
Type: System.Data.Entity.Spatial.DbGeographyA new DbGeography instance that contains the specified providerValue and uses the specified spatialServices as its spatial implementation.