Skip to main content

Definition

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

Syntax

Summary

Defines an Index for a given object store.

Constructors

.ctor

Syntax

Parameters

Exceptions

.ctor Inherited

Inherited from object

Syntax

Properties

Database

Syntax

Property Value

Type: CloudNimble.BlazorEssentials.IndexedDb.IndexedDbDatabase

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 null will default to index name

Syntax

Property Value

Type: string

MultiEntry

Affects how the index behaves when the result of evaluating the index’s key path yields an array. If true, there is one record in the index for each item in an array of keys. If false, then there is one record for each key that is an array.

Syntax

Property Value

Type: bool

Name

The name of the index.

Syntax

Property Value

Type: string

ObjectStore

Only use for indexes If true, this index does not allow duplicate values for a key.

Syntax

Property Value

Type: CloudNimble.BlazorEssentials.IndexedDb.IndexedDbObjectStore

Unique

Only use for indexes If true, this index does not allow duplicate values for a key.

Syntax

Property Value

Type: bool

Methods

CountAsync

Count records in Index

Syntax

Returns

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

CountAsync

Count records in Index

Syntax

Parameters

Returns

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

Type Parameters

  • TKey -

CountAsync

Count records in Index

Syntax

Parameters

Returns

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

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 that match a given query in the specified index.

Syntax

Parameters

Returns

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

Type Parameters

  • TResult -

GetAllAsync

Gets all of the records that match a given query in the specified index.

Syntax

Parameters

Returns

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

Type Parameters

  • TKey -
  • TResult -

GetAllAsync

Gets all of the records that match a given query in the specified index.

Syntax

Parameters

Returns

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

Type Parameters

  • TKey -
  • TResult -

GetAllAsync

Gets all of the records that match a given query in the specified index.

Syntax

Parameters

Returns

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

Type Parameters

  • TKey -
  • TResult -

GetAllKeysAsync

Gets all of the records keys that match a given query in the specified index.

Syntax

Parameters

Returns

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

Type Parameters

  • TResult -

GetAllKeysAsync

Gets all of the records keys that match a given query in the specified index.

Syntax

Parameters

Returns

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

Type Parameters

  • TKey -
  • TResult -

GetAllKeysAsync

Gets all of the records that match a given query in the specified index.

Syntax

Parameters

Returns

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

Type Parameters

  • TKey -
  • TResult -

GetAllKeysAsync

Gets all of the records that match a given query in the specified index.

Syntax

Parameters

Returns

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

Type Parameters

  • TKey -
  • TResult -

GetAsync

Returns the first record that matches a query against a given index

Syntax

Parameters

Returns

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

Type Parameters

  • TKey -
  • TResult -

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetKeyAsync

Returns the first record keys that matches a query against a given index

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

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?