-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NET5 - Does Blazor + WASM + Client-Side-Only (No Server) support EF + Sqlite + InMemory? #34141
Comments
"Standalone" Blazor WASM I guess is the correct verbiage! Removing sqlite from the equation and just using "Microsoft.EntityFrameworkCore.InMemory" partially resolved my issue for each session, but I'm still looking for an "official" solution to save/load EF to browser storage (IndexedDB) between sessions? Roll my own? Update IndexedDB from the network and then load that into InMemory EF? Write back to IndexedDB when my InMemory EF changes? I need something more than querying by just a key. |
Thanks for contacting us. |
Thanks for contacting us. We're moving this issue to the |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
I've search all over the internet, but my search has been complicated by the "language" used to describe this paradigm or "hosting model".
When attempting to use [ EFCore + Sqlite + InMemory ] in a Blazor + WASM + Client-Side-Only App...
optionsBuilder.UseSqlite($"Data Source=:memory:;");
I get...
System.DllNotFoundException: e_sqlite3
at SQLitePCL.Batteries_V2.MyGetFunctionPointer..ctor(IntPtr dll)
at SQLitePCL.Batteries_V2.MakeDynamic(String name, Int32 flags)
at SQLitePCL.Batteries_V2.DoDynamic_cdecl(String name, Int32 flags)
at SQLitePCL.Batteries_V2.Init()
#1 - In NET5, does Blazor + WASM + Client-Side-Only (No Server) support EF + Sqlite + InMemory?
#2 - If not, what is the officially supported solution for Entity Framework to browser storage (IndexedDB)?
#3 - Is Cosmos DB the only NoSql provider for Entity Framework? Is there a local equivalent?
I have a Windows desktop app that I would like to make "cross-platform" by porting it to Blazor + WASM + Client-Side-Only = NO SERVER, NO API.
I've been able to port everything EXCEPT local data storage. The desktop app uses EFCore + SQLITE works awesome!
Before anyone talks about sandboxes or other considerations etc...trust me, I am aware of the limitation of browser local storage, I can use JS interop to CRUD browser local storage and IndexedDB...not the issue or that even browser storage is ephemeral, got it! I want to store data collected from the network for as long as possible without re-fetching and re-constructing it.
My issue is bridging the gap between my existing EFCore code base and browser local storage?
I'm also familiar with and have tried the Uno Platform, but have chosen not to go that route at this time.
Thank You!
The text was updated successfully, but these errors were encountered: