Implement settings.

This commit is contained in:
2020-08-22 21:19:34 +01:00
parent 1088fd1494
commit 24256660bc
7 changed files with 648 additions and 3 deletions

View File

@@ -57,6 +57,8 @@ namespace RomRepoMgr.Database
public DbSet<Machine> Machines { get; set; }
public DbSet<FileByMachine> FilesByMachines { get; set; }
public static void ReplaceSingleton(string dbPath) => _singleton = Create(dbPath);
public static Context Create(string dbPath)
{
var optionsBuilder = new DbContextOptionsBuilder();