DbSpatialServices.GeographyFromProviderValue Method (Object)

 

Creates a new DbGeography value based on a provider-specific value that is compatible with this spatial services implementation.

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

public abstract DbGeography GeographyFromProviderValue(
	object providerValue
)

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.DbGeography

A 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.