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

# McpTaskEntityConfiguration

> Maps [McpTaskEntity](/mcpessentials/api-reference/CloudNimble/McpEssentials/EntityFrameworkCore/Tasks/McpTaskEntity) to a table (default `McpTasks`) with owner, work-windo...

## Definition

**Assembly:** CloudNimble.McpEssentials.EntityFrameworkCore.dll

**Namespace:** CloudNimble.McpEssentials.EntityFrameworkCore.Tasks

**Inheritance:** System.Object

## Syntax

```csharp theme={null}
CloudNimble.McpEssentials.EntityFrameworkCore.Tasks.McpTaskEntityConfiguration
```

## Summary

Maps [McpTaskEntity](https://ai.easyaf.dev/mcpessentials/api-reference/CloudNimble/McpEssentials/EntityFrameworkCore/Tasks/McpTaskEntity.md) to a table (default `McpTasks`) with owner, work-window,
and discard indexes and an application-managed concurrency token. Protocol enums and payloads
convert to strings. [StoredMcpTask.DiscardAfter](https://ai.easyaf.dev/mcpessentials/api-reference/CloudNimble/McpEssentials/Core/Tasks/StoredMcpTask.md#discardafter) stores UTC ticks so every
provider, including SQLite, can `ExecuteDelete` on the stamp.

## Constructors

### &#x20;.ctor

Initializes a new instance that maps to table `McpTasks`.

#### Syntax

```csharp theme={null}
public McpTaskEntityConfiguration()
```

### &#x20;.ctor

Initializes a new instance that maps to *tableName* in
*schema*.

#### Syntax

```csharp theme={null}
public McpTaskEntityConfiguration(string tableName, string schema = null)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `tableName` | `string` | The table name. |
| `schema` | `string?` | The schema, or [`null`](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) for the database default. |

#### Exceptions

| Exception | Description |
| - | - |
| `ArgumentException` | Thrown when *tableName* is [`null`](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) or whitespace. |

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public Object()
```

## Properties

### &#x20;Schema

Gets the schema, or [`null`](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) to use the database default.

#### Syntax

```csharp theme={null}
public string Schema { get; }
```

#### Property Value

Type: `string?`

### &#x20;TableName

Gets the table name. The default is `McpTasks`.

#### Syntax

```csharp theme={null}
public string TableName { get; }
```

#### Property Value

Type: `string`

## Methods

### &#x20;Configure Virtual

#### Syntax

```csharp theme={null}
public virtual void Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<CloudNimble.McpEssentials.EntityFrameworkCore.Tasks.McpTaskEntity> builder)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `builder` | `Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<CloudNimble.McpEssentials.EntityFrameworkCore.Tasks.McpTaskEntity>` | - |

### &#x20;Equals Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public virtual bool Equals(object obj)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `obj` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;Equals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;GetHashCode Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### &#x20;GetType Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### &#x20;MemberwiseClone Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;ToString Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public virtual string ToString()
```

#### Returns

Type: `string?`

## Related APIs

* Microsoft.EntityFrameworkCore.IEntityTypeConfiguration\<CloudNimble.McpEssentials.EntityFrameworkCore.Tasks.McpTaskEntity>


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