-
Has anyone tested DotmimSync with a Blazor WebAssembly App. (Where the WebAssembly Client uses a local SQLite database) Brief background: I am working on a product what needs to account for an environment with regular power supply interruptions. Any pointers to working with a combination of local SQLite databases, DotminSync and WebAssembly would be apricated. (I looked briefly at SqliteWasmHelper @JeremyLikness) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
We have a similar project that's released to production. SQL Server on the server with several hundred thousand rows to sync (many more than that on the server) synchronizing to a Blazor WASM PWA/SPA. We do use SQLitePCLRaw.bundle_e_sqlite3 and use Entity Framework with SQLite, which works fine. We are also switching to SQLitePCLRaw.provider.e_sqlcipher (encrypted) shortly. A few things to note...
FYI - my overall impression of Blazor WASM is that it needs a few more iterations before it's really production ready. As MS is on annual releases, it'll take at least another year for it to become more viable. We're using it in the meantime, but there's some "gotchas". Good luck with your project. |
Beta Was this translation helpful? Give feedback.
-
Hi @ethhill, thank you very much for your feedback. There is lots of food for thought here :-) |
Beta Was this translation helpful? Give feedback.
We have a similar project that's released to production. SQL Server on the server with several hundred thousand rows to sync (many more than that on the server) synchronizing to a Blazor WASM PWA/SPA.
We do use SQLitePCLRaw.bundle_e_sqlite3 and use Entity Framework with SQLite, which works fine. We are also switching to SQLitePCLRaw.provider.e_sqlcipher (encrypted) shortly.
A few things to note...
Asp.NET sessions: Blazor WASM does not natively support Asp.NET sessions, which Dotmim Sync requires on the server. We worked around this by adding a Dotmim interceptor on WebRemoteOrchestrator.OnHttpSendingRequest and setting Request.SetBrowserRequestCredentials to BrowserRequestCredentials.I…