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

# PrimaryKeyAttribute

> Marks a property as the primary key of the table.

## Definition

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

**Namespace:** CloudNimble.BlazorEssentials.TursoDb

**Inheritance:** System.Attribute

## Syntax

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

## Summary

Marks a property as the primary key of the table.

## Constructors

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

#### Syntax

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

## Properties

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

Gets or sets whether the primary key auto-increments.
Defaults to true for integer types.

#### Syntax

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

#### Property Value

Type: `bool`
