> ## 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.

# ObjectStoreAttribute

> Helps define the structure of a [IndexedDbObjectStore](/blazoressentials/api-reference/CloudNimble/BlazorEssentials/IndexedDb/IndexedDbObjectStore) so you don't have to subcl...

## Definition

**Assembly:** CloudNimble.BlazorEssentials.IndexedDb.dll

**Namespace:** CloudNimble.BlazorEssentials.IndexedDb

**Inheritance:** System.Attribute

## Syntax

```csharp theme={"dark"}
CloudNimble.BlazorEssentials.IndexedDb.ObjectStoreAttribute
```

## Summary

Helps define the structure of a [IndexedDbObjectStore](https://easyaf.nimbleapps.cloud/blazoressentials/api-reference/CloudNimble/BlazorEssentials/IndexedDb/IndexedDbObjectStore.md) so you don't have to subclass one for every object store.

## Constructors

### &#x20;.ctor

#### Syntax

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

## Properties

### &#x20;AutoIncrementKeys

Specifies if the keys for this [IndexedDbObjectStore](https://easyaf.nimbleapps.cloud/blazoressentials/api-reference/CloudNimble/BlazorEssentials/IndexedDb/IndexedDbObjectStore.md) should auto-increment. Defaults to false.

#### Syntax

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

#### Property Value

Type: `bool`

### &#x20;KeyPath

Specifies the name of the Key for this [IndexedDbObjectStore](https://easyaf.nimbleapps.cloud/blazoressentials/api-reference/CloudNimble/BlazorEssentials/IndexedDb/IndexedDbObjectStore.md). Defaults to "id".

#### Syntax

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

#### Property Value

Type: `string`

### &#x20;Name

Specifies the name of the Object Store. Defaults to the the name of the property in the [IndexedDbDatabase](https://easyaf.nimbleapps.cloud/blazoressentials/api-reference/CloudNimble/BlazorEssentials/IndexedDb/IndexedDbDatabase.md).

#### Syntax

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

#### Property Value

Type: `string`


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