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

# IEntityFrameworkApi

> Interface for Entity Framework Api instances.             Makes easy retrieval of the DbContext possible.

## Definition

**Assembly:** Microsoft.Restier.EntityFrameworkCore.dll

**Namespace:** Microsoft.Restier.EntityFrameworkCore

## Syntax

```csharp theme={"dark"}
Microsoft.Restier.EntityFrameworkCore.IEntityFrameworkApi
```

## Summary

Interface for Entity Framework Api instances.
Makes easy retrieval of the DbContext possible.

## Properties

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> ContextType <Badge color="orange">Abstract</Badge>

Gets the Context Type.

#### Syntax

```csharp theme={"dark"}
System.Type ContextType { get; }
```

#### Property Value

Type: `System.Type`

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> DbContext <Badge color="orange">Abstract</Badge>

Gets the underlying DbContext for this API.

#### Syntax

```csharp theme={"dark"}
Microsoft.EntityFrameworkCore.DbContext DbContext { get; }
```

#### Property Value

Type: `Microsoft.EntityFrameworkCore.DbContext`
