DbSpatialServices.GeographyFromProviderValue Method (Object)
Creates a new DbGeography value based on a provider-specific value that is compatible with this spatial services implementation.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- providerValue
-
Type:
System.Object
A provider-specific value that this spatial services implementation is capable of interpreting as a geography value.
Return Value
Type: System.Data.Entity.Spatial.DbGeographyA new DbGeography value backed by this spatial services implementation and the specified provider value.
Exception | Condition |
---|---|
ArgumentNullException | providerValue is null. |
ArgumentException | providerValue is not compatible with this spatial services implementation. |