refactor(infra): move database path logic into app context

This commit is contained in:
Stevan Freeborn
2026-02-06 06:53:20 -06:00
parent 04e0a31b27
commit af29df5d19
2 changed files with 9 additions and 10 deletions
@@ -3,11 +3,6 @@ namespace FiscalOS.Infra.Data;
public sealed record AppDbContextOptions
{
public string DatabaseFilePath { get; init; } = string.Empty;
public string GetFullyQualifiedDatabasePath()
{
return Path.GetFullPath(DatabaseFilePath, AppContext.BaseDirectory);
}
}
public sealed record AppDbContextOptionsSetup : IConfigureOptions<AppDbContextOptions>