Add comment to DbContext about where the database file is created.
This commit is contained in:
parent
5b3c661b67
commit
451fb50cd8
@ -9,6 +9,7 @@ public class DeadBallZoneLeagueDbContext : DbContext
|
|||||||
private string DbPath;
|
private string DbPath;
|
||||||
public DeadBallZoneLeagueDbContext()
|
public DeadBallZoneLeagueDbContext()
|
||||||
{
|
{
|
||||||
|
// In Ubuntu 24.04, the file is created here: /home/user/.local/share
|
||||||
var folder = Environment.SpecialFolder.LocalApplicationData;
|
var folder = Environment.SpecialFolder.LocalApplicationData;
|
||||||
var path = Environment.GetFolderPath(folder);
|
var path = Environment.GetFolderPath(folder);
|
||||||
DbPath = Path.Combine(path, "DeadBallZoneLeague_EFCore.db");
|
DbPath = Path.Combine(path, "DeadBallZoneLeague_EFCore.db");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user