SQLLite vol 1.

This commit is contained in:
2025-02-05 13:47:11 +01:00
parent aaa5862c80
commit 4570c071a7
15 changed files with 190 additions and 28 deletions
+10 -2
View File
@@ -1,16 +1,24 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using WorkFlowCheck.Common.DTO;
using WorkFlowCheck.MAUI.DataLayer;
using WorkFlowCheck.MAUI.Services;
namespace WorkFlowCheck.MAUI
{
public partial class App : Application
{
private readonly AppDbContext _dbContext;
public App(IServiceProvider serviceProvider)
{
InitializeComponent();
//MainPage = serviceProvider.GetRequiredService<MainPage>();
_dbContext = serviceProvider.GetRequiredService<AppDbContext>();
_dbContext.Database.EnsureDeleted(); // Adatbázis törlése
_dbContext.Database.EnsureCreated(); // Új adatbázis létrehozása
MainPage = new AppShell();
}