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

# IndexAttribute

> Creates an index on the specified column.

## Definition

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

**Namespace:** CloudNimble.BlazorEssentials.TursoDb

**Inheritance:** System.Attribute

## Syntax

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

## Summary

Creates an index on the specified column.

## Constructors

### &#x20;.ctor

#### Syntax

```csharp theme={"dark"}
public IndexAttribute()
```

## Properties

### &#x20;Name

Gets or sets the index name.
If not specified, the name is auto-generated as "ix\_{tablename}\_{columnname}".

#### Syntax

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

#### Property Value

Type: `string?`

### &#x20;Unique

Gets or sets whether the index enforces uniqueness.

#### Syntax

```csharp theme={"dark"}
public bool Unique { get; set; }
```

#### Property Value

Type: `bool`


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