> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.nimbleapps.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# DbGeography

> Extension methods for DbGeography from EntityFramework

## Definition

**Assembly:** EntityFramework.dll

**Namespace:** System.Data.Entity.Spatial

## Syntax

```csharp theme={"dark"}
System.Data.Entity.Spatial.DbGeography
```

## Summary

This type is defined in EntityFramework.

## Methods

### &#x20;ToGeographyLineString Extension

> [!NOTE]
>
> Extension method from `Microsoft.Restier.EntityFramework.GeographyConverter`

Convert a DbGeography to Edm GeographyPoint

#### Syntax

```csharp theme={"dark"}
public static Microsoft.Spatial.GeographyLineString ToGeographyLineString(System.Data.Entity.Spatial.DbGeography geography)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `geography` | `System.Data.Entity.Spatial.DbGeography` | The DbGeography to be converted |

#### Returns

Type: `Microsoft.Spatial.GeographyLineString`
A Edm GeographyLineString

### &#x20;ToGeographyPoint Extension

> [!NOTE]
>
> Extension method from `Microsoft.Restier.EntityFramework.GeographyConverter`

Convert a DbGeography to Edm GeographyPoint

#### Syntax

```csharp theme={"dark"}
public static Microsoft.Spatial.GeographyPoint ToGeographyPoint(System.Data.Entity.Spatial.DbGeography geography)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `geography` | `System.Data.Entity.Spatial.DbGeography` | The DbGeography to be converted |

#### Returns

Type: `Microsoft.Spatial.GeographyPoint`
A Edm GeographyPoint


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.