Avalonia Boilerplate
This commit is contained in:
parent
a6d5a3eb72
commit
0d32e6a5c3
14 changed files with 117 additions and 23 deletions
15
app/InkForge.Common/Data/NoteDbContextFactory.cs
Normal file
15
app/InkForge.Common/Data/NoteDbContextFactory.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
using InkForge.Data;
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace InkForge.Common.Data;
|
||||
|
||||
public class NoteDbContextFactory : IDbContextFactory<NoteDbContext>
|
||||
{
|
||||
|
||||
public NoteDbContext CreateDbContext()
|
||||
{
|
||||
return new NoteDbContext(null);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue