refactor(infra): move database path logic into app context
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user