I have a .NET Maui Blazor App and configured SQLite storage via Entity Framework Core:
builder.UseSqlite($"Data Source=app.db")
Everything is working fine. For debugging purposes, I want to access the SQLite database file from a database explorer. I found that the file is stored at this location, when I start the app in Debug mode for Windows target.
c:\Users\<username>\AppData\Local\Packages\5A71F6B4-07D1-4042-BC1C-C1FD1963A030_9zz4h110yvjzm\LocalState\app.db.
This is poor developer experience. How can I "mount" the database file from outside a .NET Maui Blazor app or specify the file path on the debugging host machine so that it's not random?
FileSystem.AppDataDirectory. Is that the directory that was used?FileSystem.AppDataDirectoryis not available for me.