Skip to main content

Definition

Assembly: EntityFramework.dll Namespace: System.Data.Entity.Spatial

Syntax

System.Data.Entity.Spatial.DbGeography

Summary

This type is defined in EntityFramework.

Methods

ToGeographyLineString Extension

Extension method from Microsoft.Restier.EntityFramework.GeographyConverter
Convert a DbGeography to Edm GeographyPoint

Syntax

public static Microsoft.Spatial.GeographyLineString ToGeographyLineString(System.Data.Entity.Spatial.DbGeography geography)

Parameters

NameTypeDescription
geographySystem.Data.Entity.Spatial.DbGeographyThe DbGeography to be converted

Returns

Type: Microsoft.Spatial.GeographyLineString A Edm GeographyLineString

ToGeographyPoint Extension

Extension method from Microsoft.Restier.EntityFramework.GeographyConverter
Convert a DbGeography to Edm GeographyPoint

Syntax

public static Microsoft.Spatial.GeographyPoint ToGeographyPoint(System.Data.Entity.Spatial.DbGeography geography)

Parameters

NameTypeDescription
geographySystem.Data.Entity.Spatial.DbGeographyThe DbGeography to be converted

Returns

Type: Microsoft.Spatial.GeographyPoint A Edm GeographyPoint