DbSpatialServices.CreateGeometry(DbSpatialServices, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework