> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.dev/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

### <Icon icon="puzzle-piece" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> ToGeographyLineString <Badge color="green">Extension</Badge>

<Note>Extension method from `Microsoft.Restier.EntityFramework.GeographyConverter`</Note>

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

### <Icon icon="puzzle-piece" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> ToGeographyPoint <Badge color="green">Extension</Badge>

<Note>Extension method from `Microsoft.Restier.EntityFramework.GeographyConverter`</Note>

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
