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


Usage in BlazorWebassembly


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): EF Core usage in Blazor WebAssembly:

JSON file based custom solution


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