Share via


DbSpatialServices.CreateGeometry(DbSpatialServices, Object) Method

Definition

This method is intended for use by derived implementations of GeometryFromProviderValue(Object) after suitable validation of the specified provider value to ensure it is suitable for use with the derived implementation.

protected static System.Data.Entity.Spatial.DbGeometry CreateGeometry (System.Data.Entity.Spatial.DbSpatialServices spatialServices, object providerValue);
static member CreateGeometry : System.Data.Entity.Spatial.DbSpatialServices * obj -> System.Data.Entity.Spatial.DbGeometry
Protected Shared Function CreateGeometry (spatialServices As DbSpatialServices, providerValue As Object) As DbGeometry

Parameters

spatialServices
DbSpatialServices

The spatial services instance that the returned DbGeometry value will depend on for its implementation of spatial functionality.

providerValue
Object

A provider value.

Returns

A new DbGeometry instance that contains the specified providerValue and uses the specified spatialServices as its spatial implementation.

Applies to