Definition
Assembly: CloudNimble.BlazorEssentials.IndexedDb.dll Namespace: CloudNimble.BlazorEssentials.IndexedDb Inheritance: System.ObjectSyntax
Summary
Defines an Index for a given object store.Constructors
.ctor
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
objectStore | CloudNimble.BlazorEssentials.IndexedDb.IndexedDbObjectStore | - |
name | string | - |
keyPath | string | - |
multiEntry | bool | - |
unique | bool | - |
Exceptions
| Exception | Description |
|---|---|
IndexedDbException |
.ctor Inherited
Inherited from
objectSyntax
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 nameSyntax
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 IndexSyntax
Returns
Type:System.Threading.Tasks.Task<int>
CountAsync
Count records in IndexSyntax
Parameters
| Name | Type | Description |
|---|---|---|
key | TKey | - |
Returns
Type:System.Threading.Tasks.Task<int>
Type Parameters
TKey-
CountAsync
Count records in IndexSyntax
Parameters
| Name | Type | Description |
|---|---|---|
key | CloudNimble.BlazorEssentials.IndexedDb.KeyRange<TKey> | - |
Returns
Type:System.Threading.Tasks.Task<int>
Type Parameters
TKey-
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetAllAsync
Gets all of the records that match a given query in the specified index.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
count | System.Nullable<int> | - |
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
| Name | Type | Description |
|---|---|---|
key | TKey | - |
count | System.Nullable<int> | - |
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
| Name | Type | Description |
|---|---|---|
key | CloudNimble.BlazorEssentials.IndexedDb.KeyRange<TKey> | - |
count | System.Nullable<int> | - |
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
| Name | Type | Description |
|---|---|---|
key | TKey[] | - |
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
| Name | Type | Description |
|---|---|---|
count | System.Nullable<int> | - |
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
| Name | Type | Description |
|---|---|---|
key | TKey | - |
count | System.Nullable<int> | - |
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
| Name | Type | Description |
|---|---|---|
key | CloudNimble.BlazorEssentials.IndexedDb.KeyRange<TKey> | - |
count | System.Nullable<int> | - |
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
| Name | Type | Description |
|---|---|---|
key | TKey[] | - |
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 indexSyntax
Parameters
| Name | Type | Description |
|---|---|---|
queryValue | TKey | - |
Returns
Type:System.Threading.Tasks.Task<TResult>
Type Parameters
TKey-TResult-
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetKeyAsync
Returns the first record keys that matches a query against a given indexSyntax
Parameters
| Name | Type | Description |
|---|---|---|
key | TKey | - |
Returns
Type:System.Threading.Tasks.Task<TResult>
Type Parameters
TKey-TResult-
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
QueryAsync
Gets all of the records using a filter expressionSyntax
Parameters
| Name | Type | Description |
|---|---|---|
filter | string | expression that evaluates to true/false, each record es passed to “obj” parameter |
count | System.Nullable<int> | - |
skip | System.Nullable<int> | - |
Returns
Type:System.Threading.Tasks.Task<System.Collections.Generic.List<TResult>>
Type Parameters
TResult-
QueryAsync
Gets all of the records using a filter expressionSyntax
Parameters
| Name | Type | Description |
|---|---|---|
filter | string | expression that evaluates to true/false, each record es passed to “obj” parameter |
key | TKey | - |
count | System.Nullable<int> | - |
skip | System.Nullable<int> | - |
Returns
Type:System.Threading.Tasks.Task<System.Collections.Generic.List<TResult>>
Type Parameters
TKey-TResult-
QueryAsync
Gets all of the records using a filter expressionSyntax
Parameters
| Name | Type | Description |
|---|---|---|
filter | string | expression that evaluates to true/false, each record es passed to “obj” parameter |
key | CloudNimble.BlazorEssentials.IndexedDb.KeyRange<TKey> | - |
count | System.Nullable<int> | - |
skip | System.Nullable<int> | - |
Returns
Type:System.Threading.Tasks.Task<System.Collections.Generic.List<TResult>>
Type Parameters
TKey-TResult-
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?