Skip to main content

Definition

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

Syntax

Summary

Defines a store to add to database

Constructors

.ctor

Add new ObjectStore definition

Syntax

Parameters

.ctor

Add new ObjectStore definition

Syntax

Parameters

.ctor Inherited

Inherited from object

Syntax

Properties

AutoIncrement

If true, the object store has a key generator. Defaults to false. Note that every object store has its own separate auto increment counter.

Syntax

Property Value

Type: bool

Database

IDMManager

Syntax

Property Value

Type: CloudNimble.BlazorEssentials.IndexedDb.IndexedDbDatabase

Indexes

Provides a set of additional indexes if required.

Syntax

Property Value

Type: System.Collections.Generic.List<CloudNimble.BlazorEssentials.IndexedDb.IndexedDbIndex>

KeyPath

the identifier for the property in the object/record that is saved and is to be indexed. can be multiple properties separated by comma If this property is null, the application must provide a key for each modification operation.

Syntax

Property Value

Type: string?

Name

The name for the store

Syntax

Property Value

Type: string

Methods

AddAsync

Adds a new record/object to the specified ObjectStore

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task

Type Parameters

  • TData -

AddAsync

Adds a new record/object to the specified ObjectStore

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<TKey>

Type Parameters

  • TData -
  • TKey -

AddAsync

Adds a new record/object to the specified ObjectStore

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<TKey>

Type Parameters

  • TData -
  • TKey -

BatchAddAsync

Add an array of new record/object in one transaction to the specified store

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task

Type Parameters

  • TData -

BatchAddAsync

Add an array of new record/object in one transaction to the specified store

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<TKey[]>

Type Parameters

  • TData -
  • TKey -

BatchDeleteAsync

Delete multiple records from the store based on the id

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task

Type Parameters

  • TKey -

BatchPutAsync

Put an array of new record/object in one transaction to the specified store

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task

Type Parameters

  • TData -

BatchPutAsync

Put an array of new record/object in one transaction to the specified store

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<TKey[]>

Type Parameters

  • TData -
  • TKey -

ClearStoreAsync

Clears all of the records from a given store.

Syntax

Returns

Type: System.Threading.Tasks.Task

CountAsync

Count records in ObjectStore

Syntax

Returns

Type: System.Threading.Tasks.Task<int>

CountAsync

Count records in ObjectStore

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<int>

Type Parameters

  • TKey -

CountAsync

Count records in ObjectStore

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<int>

Type Parameters

  • TKey -

DeleteAsync

Deletes a record from the store based on the id

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task

Type Parameters

  • TKey -

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetAllAsync

Gets all of the records in a given store.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<System.Collections.Generic.List<TResult>>

Type Parameters

  • TResult -

GetAllAsync

Gets all of the records by Key in a given store.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<System.Collections.Generic.List<TResult>>

Type Parameters

  • TKey -
  • TResult -

GetAllAsync

Gets all of the records by KeyRange in a given store.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<System.Collections.Generic.List<TResult>>

Type Parameters

  • TKey -
  • TResult -

GetAllAsync

Gets all of the records by ArrayKey in a given store.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<System.Collections.Generic.List<TResult>>

Type Parameters

  • TKey -
  • TResult -

GetAllKeysAsync

Gets all of the records keys in a given store.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<System.Collections.Generic.List<TResult>>

Type Parameters

  • TResult -

GetAllKeysAsync

Gets all of the records keys by Key in a given store.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<System.Collections.Generic.List<TResult>>

Type Parameters

  • TKey -
  • TResult -

GetAllKeysAsync

Gets all of the records by KeyRange in a given store.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<System.Collections.Generic.List<TResult>>

Type Parameters

  • TKey -
  • TResult -

GetAllKeysAsync

Gets all of the records by ArrayKey in a given store.

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<System.Collections.Generic.List<TResult>>

Type Parameters

  • TKey -
  • TResult -

GetAsync

Retrieve a record by Key

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<TResult?>

Type Parameters

  • TKey -
  • TResult -

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetKeyAsync

Retrieve a record key by Key

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<TResult?>

Type Parameters

  • TKey -
  • TResult -

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

PutAsync

Updates and existing record

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task

Type Parameters

  • TData -

PutAsync

Updates and existing record

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<TKey>

Type Parameters

  • TData -
  • TKey -

PutAsync

Updates and existing record

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<TKey>

Type Parameters

  • TData -
  • TKey -

QueryAsync

Gets all of the records using a filter expression

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<System.Collections.Generic.List<TResult>>

Type Parameters

  • TResult -

QueryAsync

Gets all of the records using a filter expression

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<System.Collections.Generic.List<TResult>>

Type Parameters

  • TKey -
  • TResult -

QueryAsync

Gets all of the records using a filter expression

Syntax

Parameters

Returns

Type: System.Threading.Tasks.Task<System.Collections.Generic.List<TResult>>

Type Parameters

  • TKey -
  • TResult -

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?