Documentation Index Fetch the complete documentation index at: https://easyaf.dev/llms.txt
Use this file to discover all available pages before exploring further.
Definition
Assembly: CloudNimble.BlazorEssentials.IndexedDb.dll
Namespace: CloudNimble.BlazorEssentials.IndexedDb
Inheritance: System.Object
Syntax
CloudNimble . BlazorEssentials . IndexedDb . IndexedDbDatabase
Summary
Provides functionality for accessing IndexedDB from Blazor application
Constructors
.ctor
Syntax
public IndexedDbDatabase ( Microsoft . JSInterop . IJSRuntime jsRuntime )
Parameters
Name Type Description jsRuntimeMicrosoft.JSInterop.IJSRuntime-
.ctor Inherited
Syntax
Properties
DatabaseDefinition
Syntax
public CloudNimble . BlazorEssentials . IndexedDb . Schema . IndexedDbDatabaseDefinition DatabaseDefinition { get ; internal set ; }
Property Value
Type: CloudNimble.BlazorEssentials.IndexedDb.Schema.IndexedDbDatabaseDefinition
Name
Syntax
public string Name { get ; init ; }
Property Value
Type: string
ObjectStores
Syntax
public System . Collections . Generic . List < CloudNimble . BlazorEssentials . IndexedDb . IndexedDbObjectStore > ObjectStores { get ; private set ; }
Property Value
Type: System.Collections.Generic.List<CloudNimble.BlazorEssentials.IndexedDb.IndexedDbObjectStore>
Version
Syntax
public int Version { get ; set ; }
Property Value
Type: int
Methods
CallJavaScriptAsync
Syntax
public System . Threading . Tasks . Task CallJavaScriptAsync ( string functionName , params object [] args )
Parameters
Name Type Description functionNamestring- argsobject[]-
Returns
Type: System.Threading.Tasks.Task
Exceptions
Exception Description IndexedDbException
CallJavaScriptAsync
Syntax
public System . Threading . Tasks . Task < TResult > CallJavaScriptAsync < TResult >( string functionName , params object [] args )
Parameters
Name Type Description functionNamestring- argsobject?[]-
Returns
Type: System.Threading.Tasks.Task<TResult>
Type Parameters
Exceptions
Exception Description IndexedDbException
ConsoleLog
Syntax
public System . Threading . Tasks . Task ConsoleLog ( params object [] args )
Parameters
Name Type Description argsobject[]-
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
public System . Threading . Tasks . Task CreateObjectStoreAsync ( CloudNimble . BlazorEssentials . IndexedDb . IndexedDbObjectStore objectStore )
Parameters
Name Type Description objectStoreCloudNimble.BlazorEssentials.IndexedDb.IndexedDbObjectStore-
Returns
Type: System.Threading.Tasks.Task
DeleteDatabaseAsync
Deletes this IndexedDb instance from the browser.
Syntax
public System . Threading . Tasks . Task DeleteDatabaseAsync ()
Returns
Type: System.Threading.Tasks.Task
EnsureIsOpenAsync
Syntax
public System . Threading . Tasks . Task EnsureIsOpenAsync ()
Returns
Type: System.Threading.Tasks.Task
Equals Inherited Virtual
Syntax
public virtual bool Equals ( object obj )
Parameters
Name Type Description objobject?-
Returns
Type: bool
Equals Inherited
Syntax
public static bool Equals ( object objA , object objB )
Parameters
Name Type Description objAobject?- objBobject?-
Returns
Type: bool
GetHashCode Inherited Virtual
Syntax
public virtual int GetHashCode ()
Returns
Type: int
GetType Inherited
Syntax
public System . Type GetType ()
Returns
Type: System.Type
LoadSchemaAsync
Load database schema from databaseName
Syntax
public System . Threading . Tasks . Task LoadSchemaAsync ()
Returns
Type: System.Threading.Tasks.Task
MemberwiseClone Inherited
Syntax
protected internal object MemberwiseClone ()
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
public System . Threading . Tasks . Task OpenAsync ()
Returns
Type: System.Threading.Tasks.Task
ReferenceEquals Inherited
Syntax
public static bool ReferenceEquals ( object objA , object objB )
Parameters
Name Type Description objAobject?- objBobject?-
Returns
Type: bool
ToString Inherited Virtual
Syntax
public virtual string ToString ()
Returns
Type: string?