mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
Implement settings.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user