Problem with placement of large files and database file. #859

Open
opened 2026-01-29 16:50:27 +00:00 by claunia · 0 comments
Owner

Originally created by @IgorVolod on GitHub (Mar 30, 2023).

Originally assigned to: @GregorBiswanger on GitHub.

  • ElectronNET.API 23.6.1:
  • .net 6:
  • all available platforms:
    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.)
Originally created by @IgorVolod on GitHub (Mar 30, 2023). Originally assigned to: @GregorBiswanger on GitHub. * **ElectronNET.API 23.6.1**: * **.net 6**: * **all available platforms**: 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.)
claunia added the question label 2026-01-29 16:50:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#859