mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-01-24 13:48:58 -05:00
- Move all settings file logic into new LibationFiles class - Configuration.LibationFiles is a singleton instance of the LibationFiles class. - A LibationFiles instance is bound to a single appsettings.json path. All updates to LibationFiles location are updated in that appsettings.json file - Unify initial setup and settings validation process - Add LibationSetup which handles all startup validation of settings files and prompts users for setup if needed - Added a new LibationUiBase.Tests test project with tests for various
12 lines
371 B
C#
12 lines
371 B
C#
using System.IO;
|
|
|
|
namespace LibationFileManager
|
|
{
|
|
public static class SqliteStorage
|
|
{
|
|
// not customizable. don't move to config
|
|
private static string databasePath => Path.Combine(Configuration.Instance.LibationFiles.Location, "LibationContext.db");
|
|
public static string ConnectionString => $"Data Source={databasePath};Foreign Keys=False;Pooling=False;";
|
|
}
|
|
}
|