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

# TableAttribute

> Specifies the table name for an entity class.             If not specified, the class name is used as the table name.

## Definition

**Assembly:** CloudNimble.BlazorEssentials.TursoDb.dll

**Namespace:** CloudNimble.BlazorEssentials.TursoDb

**Inheritance:** System.Attribute

## Syntax

```csharp theme={"dark"}
CloudNimble.BlazorEssentials.TursoDb.TableAttribute
```

## Summary

Specifies the table name for an entity class.
If not specified, the class name is used as the table name.

## Constructors

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> .ctor

Initializes a new instance of the [TableAttribute](/blazoressentials/api-reference/CloudNimble/BlazorEssentials/TursoDb/TableAttribute) class.

#### Syntax

```csharp theme={"dark"}
public TableAttribute(string name)
```

#### Parameters

| Name   | Type     | Description                     |
| ------ | -------- | ------------------------------- |
| `name` | `string` | The table name in the database. |

#### Exceptions

| Exception           | Description                             |
| ------------------- | --------------------------------------- |
| `ArgumentException` | Thrown when name is null or whitespace. |

## Properties

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

Gets the table name in the database.

#### Syntax

```csharp theme={"dark"}
public string Name { get; }
```

#### Property Value

Type: `string`
