Add database.

This commit is contained in:
2020-08-21 23:21:01 +01:00
parent d40c4290e0
commit e7373d8bb1
8 changed files with 149 additions and 5 deletions

View 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");
}
}