From 451fb50cd8e79c9da88e43ea0d8a3054d75a7db0 Mon Sep 17 00:00:00 2001 From: Kevin Matsubara Date: Fri, 4 Apr 2025 17:58:59 +0200 Subject: [PATCH] Add comment to DbContext about where the database file is created. --- EntityFrameworkCore.Data/DeadBallZoneLeagueDbContext.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/EntityFrameworkCore.Data/DeadBallZoneLeagueDbContext.cs b/EntityFrameworkCore.Data/DeadBallZoneLeagueDbContext.cs index 0f8ed04..cf81858 100644 --- a/EntityFrameworkCore.Data/DeadBallZoneLeagueDbContext.cs +++ b/EntityFrameworkCore.Data/DeadBallZoneLeagueDbContext.cs @@ -9,6 +9,7 @@ public class DeadBallZoneLeagueDbContext : DbContext private string DbPath; public DeadBallZoneLeagueDbContext() { + // In Ubuntu 24.04, the file is created here: /home/user/.local/share var folder = Environment.SpecialFolder.LocalApplicationData; var path = Environment.GetFolderPath(folder); DbPath = Path.Combine(path, "DeadBallZoneLeague_EFCore.db");