mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
Add database.
This commit is contained in:
9
RomRepoMgr.Database/ContextFactory.cs
Normal file
9
RomRepoMgr.Database/ContextFactory.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Microsoft.EntityFrameworkCore.Design;
|
||||
|
||||
namespace RomRepoMgr.Database
|
||||
{
|
||||
public class ContextFactory : IDesignTimeDbContextFactory<Context>
|
||||
{
|
||||
public Context CreateDbContext(string[] args) => Context.Create("romrepo.db");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user