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

# DbContext

> Extension methods for DbContext from Microsoft.EntityFrameworkCore

## Definition

**Assembly:** Microsoft.EntityFrameworkCore.dll

**Namespace:** Microsoft.EntityFrameworkCore

## Syntax

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

## Summary

This type is defined in Microsoft.EntityFrameworkCore.

## Remarks

See [Microsoft documentation](https://learn.microsoft.com/dotnet/api/microsoft.entityframeworkcore.dbcontext) for more information about the rest of the API.

## Methods

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

<Note>Extension method from `Microsoft.Restier.EntityFrameworkCore.EFCoreDbContextExtensions`</Note>

Does the specified entity type have a DbSet mapping in the model

#### Syntax

```csharp theme={"dark"}
public static bool IsDbSetMapped(Microsoft.EntityFrameworkCore.DbContext context, System.Type type)
```

#### Parameters

| Name      | Type                                      | Description |
| --------- | ----------------------------------------- | ----------- |
| `context` | `Microsoft.EntityFrameworkCore.DbContext` | -           |
| `type`    | `System.Type`                             | -           |

#### Returns

Type: `bool`
