Skip to main content

Definition

Assembly: CloudNimble.BlazorEssentials.IndexedDb.dll Namespace: CloudNimble.BlazorEssentials.IndexedDb Inheritance: System.Attribute

Syntax

CloudNimble.BlazorEssentials.IndexedDb.ObjectStoreAttribute

Summary

Helps define the structure of a IndexedDbObjectStore so you don’t have to subclass one for every object store.

Constructors

.ctor

Syntax

public ObjectStoreAttribute()

Properties

AutoIncrementKeys

Specifies if the keys for this IndexedDbObjectStore should auto-increment. Defaults to false.

Syntax

public bool AutoIncrementKeys { get; set; }

Property Value

Type: bool

KeyPath

Specifies the name of the Key for this IndexedDbObjectStore. Defaults to “id”.

Syntax

public string KeyPath { get; set; }

Property Value

Type: string

Name

Specifies the name of the Object Store. Defaults to the the name of the property in the IndexedDbDatabase.

Syntax

public string Name { get; set; }

Property Value

Type: string