Author : MD TAREQ HASSAN | Updated : 2021/03/01

IndexedDB

Usage in BlazorWebassembly

SQLite

SqlLite needs file system to save data to. Typically web browser don’t let JavaScript directly access the file system and Blazor wasm is no different. So, as of now SQLite can not be used in Blazor WebAssembly.

Blazor on WebAssembly runs in the same security context as JavaScript, and is therefore subject to the same limitations as Javascript when it comes to accessing resources outside of its process. You will need an API.

Workaround for SQLite using wrapper (experimental, not recommended to use in production): https://vkbansal.me/blog/sqlite-in-browser-using-webassembly-wasm/ EF Core usage in Blazor WebAssembly: https://github.com/dotnet/efcore/issues/18908#issuecomment-600718924

JSON file based custom solution

Example

NCDBLite
  - table_001
    - row_id_001.json
    - row_id_002.json
  - table_002
    - 
    -