DbSpatialServices.CreateGeography(DbSpatialServices, Object) 方法

定义

在指定提供程序值的合适验证后, GeographyFromProviderValue(Object) 的派生实现使用此方法,以确保其适用于派生实现。

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

参数

spatialServices
DbSpatialServices

返回的DbGeography 的值将依赖的空间服务实例用于空间函数的实现。

providerValue
Object

提供程序值。

返回

包含指定的 providerValue 并使用指定的 spatialServices 作为其空间实现的新 DbGeography 实例。

适用于