Sqlite Location #177

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

Originally created by @kwakuduahc1 on GitHub (Jun 8, 2018).

My test app is almost running fine. I managed to drop the db in the corret folder when i do ... start and it works like a charm. However, when i do a build, I cannot seem to get the location where the context expects the sqlite db to be. I have dropped it in almost every folder but it appears stuck there.

My DbContext is simply

optionsBuilder.UseSqlite("Data Source=assistant.db;", x => { x.SuppressForeignKeyEnforcement(false); x.UseRelationalNulls(true); });

When i run dotnet project.dll, it executes fine without any error. If i start the electon app however, the error occurs

Originally created by @kwakuduahc1 on GitHub (Jun 8, 2018). My test app is almost running fine. I managed to drop the db in the corret folder when i do ... start and it works like a charm. However, when i do a build, I cannot seem to get the location where the <code>context</code> expects the sqlite db to be. I have dropped it in almost every folder but it appears stuck there. My DbContext is simply <code> optionsBuilder.UseSqlite("Data Source=assistant.db;", x => { x.SuppressForeignKeyEnforcement(false); x.UseRelationalNulls(true); });</code> When i run dotnet project.dll, it executes fine without any error. If i start the electon app however, the error occurs
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#177