Added a data context factory to abstract the database creation process

This commit is contained in:
tsommer committed 2022-08-17 21:00:37 +02:00
1 parent 12eecf9fe0
commit d53966501a
5 files changed
+34 -2

No files matched your search

@@ -1,5 +1,7 @@
using System.Text;
using System.Text.Json.Serialization;
using DataModel.Database.Common;
using Microsoft.AspNetCore.Components;
namespace UI_MAUI.Pages;
@@ -7,6 +9,9 @@ public partial class LoadProject
{
private readonly List<RecentProject> recentProjects = new();
[Inject]
public DataContextFactory DataContextFactory { get; set; }
private string newProjectName = string.Empty;
private string newProjectDestination = string.Empty;