语言

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 的新 DbGeography 实例,并使用指定的 spatialServices 作为其空间实现。

适用于