mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
SQLite database access with EFCore from Electron.NET ASP NET Core does not work #590
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @abrasat on GitHub (Nov 9, 2020).
Originally assigned to: @GregorBiswanger on GitHub.
Which version of Electron.NET CLI and API are you using?
Which version of .NET Core and Node.js are you using (if applicable)?
What target are you building for?
Steps to Reproduce:
Perform migrations, mysqlite.db file is created in the solution root. Set "Copy Always" option for it. Add manually 2 records into SQLite database.
Prepare menu in Angular code to call HttpGet API.
Start Electron App. Debug with VS2019, attach to application.
Click on menu that triggers HttpGet call. The Get() REST API in ASP .NET Core controller is triggered. No exception is thrown, but the Contacts list is empty (0 records)
The same code works when using it directly in a ASP NET Core application
@abrasat commented on GitHub (Nov 10, 2020):
Update: Yesterday I tested directly from VS 2019 by starting the Electron App with F5.
Today I executed an "electronize build" from the ps console. After that the electron app works correctly, also when started from VS 2019....
@GregorBiswanger commented on GitHub (Mar 28, 2023):
🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉
With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!