Definition
Assembly: CloudNimble.BlazorEssentials.IndexedDb.dll Namespace: CloudNimble.BlazorEssentials.IndexedDb Inheritance: System.ObjectSyntax
Summary
Provides functionality for accessing IndexedDB from Blazor applicationConstructors
.ctor
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
jsRuntime | Microsoft.JSInterop.IJSRuntime | - |
.ctor Inherited
Inherited from
objectSyntax
Properties
DatabaseDefinition
Syntax
Property Value
Type:CloudNimble.BlazorEssentials.IndexedDb.Schema.IndexedDbDatabaseDefinition
Name
Syntax
Property Value
Type:string
ObjectStores
Syntax
Property Value
Type:System.Collections.Generic.List<CloudNimble.BlazorEssentials.IndexedDb.IndexedDbObjectStore>
Version
Syntax
Property Value
Type:int
Methods
CallJavaScriptAsync
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
functionName | string | - |
args | object[] | - |
Returns
Type:System.Threading.Tasks.Task
Exceptions
| Exception | Description |
|---|---|
IndexedDbException |
CallJavaScriptAsync
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
functionName | string | - |
args | object?[] | - |
Returns
Type:System.Threading.Tasks.Task<TResult>
Type Parameters
TResult-
Exceptions
| Exception | Description |
|---|---|
IndexedDbException |
ConsoleLog
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
args | object[] | - |
Returns
Type:System.Threading.Tasks.Task
Exceptions
| Exception | Description |
|---|---|
IndexedDbException |
CreateObjectStoreAsync
This function provides the means to add a store to an existing database,Syntax
Parameters
| Name | Type | Description |
|---|---|---|
objectStore | CloudNimble.BlazorEssentials.IndexedDb.IndexedDbObjectStore | - |
Returns
Type:System.Threading.Tasks.Task
DeleteDatabaseAsync
Deletes this IndexedDb instance from the browser.Syntax
Returns
Type:System.Threading.Tasks.Task
EnsureIsOpenAsync
Syntax
Returns
Type:System.Threading.Tasks.Task
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
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
LoadSchemaAsync
Load database schema from databaseNameSyntax
Returns
Type:System.Threading.Tasks.Task
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
OpenAsync
Opens the IndexedDB defined in the DbDatabase. Under the covers will create the database if it does not exist and create the stores defined in DbDatabase.Syntax
Returns
Type:System.Threading.Tasks.Task
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?