Remove .Common-project
Currently of no use
This commit is contained in:
parent
232231d20d
commit
b1d3ec73c9
31 changed files with 16020 additions and 109 deletions
|
|
@ -1,14 +1,14 @@
|
|||
using InkForge.Desktop.Services;
|
||||
using InkForge.Data;
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
|
||||
using SmartFormat;
|
||||
using InkForge.Desktop.Data.Options;
|
||||
|
||||
namespace InkForge.Desktop.Data;
|
||||
|
||||
public class NoteDbContextFactory(WorkspaceContext context, IConfiguration configuration) : IDbContextFactory<NoteDbContext>
|
||||
public class NoteDbContextFactory(LocalWorkspaceOptions options, IConfiguration configuration) : IDbContextFactory<NoteDbContext>
|
||||
{
|
||||
private string? _connectionString;
|
||||
|
||||
|
|
@ -16,7 +16,7 @@ public class NoteDbContextFactory(WorkspaceContext context, IConfiguration confi
|
|||
{
|
||||
_connectionString ??= Smart.Format(configuration.GetConnectionString("DefaultConnection")!, new
|
||||
{
|
||||
WorkspaceFile = context.DbPath
|
||||
WorkspaceFile = options.DbPath
|
||||
});
|
||||
|
||||
DbContextOptionsBuilder<NoteDbContext> builder = new();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue