mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
Problem with placement of large files and database file. #859
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 @IgorVolod on GitHub (Mar 30, 2023).
Originally assigned to: @GregorBiswanger on GitHub.
Hello!.
I just started using the electron net, its work satisfies me quite well. I have a question that probably has obvious answers, but I didn't find any.
I stumbled over migrating a database from a server to a local machine. I dug on the stack and the git, I could not find clear recommendations.
After installing the application, the first time you run EF, it creates a new database. If you run the installation of the application again, then during the installation process the entire working directory is cleared and the database is deleted. I need to keep her.
Question: Any recommendations on how to deploy a database? so that it remains even after deleting the application. I couldn't find.
From electron's manual: app.getPath(appData)
and a word of caution: it is not recommended to write large files here, as some environments may back up this directory to cloud storage.
Lead me on the right path!
The second question is about storing video files. Same problem. The video stream is being written in the process, now the video files are saved in wwwroot\Videostream
and are also deleted when the application is reinstalled. They're big.
If you can help, thank you very much! So that I do not invent a bicycle that can suddenly break down. I understand that the question is not about the work of electron net, so if you delete it, I won't be offended.)