Mapper NETMAUI-ba

This commit is contained in:
Iván Szabó
2025-02-06 16:06:09 +01:00
parent b233347a7d
commit ac80a8a9bb
6 changed files with 39 additions and 11 deletions
+2
View File
@@ -5,6 +5,7 @@ using Microsoft.Extensions.Http;
using Microsoft.Extensions.DependencyInjection;
using CommunityToolkit.Maui;
using WorkFlowCheck.MAUI.DataLayer;
using WorkFlowCheck.MAUI.Mapper;
namespace WorkFlowCheck.MAUI
{
@@ -13,6 +14,7 @@ namespace WorkFlowCheck.MAUI
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder.Services.AddAutoMapper(typeof(MapperProfile));
// appsettings.json beállítása
string jsonFilePath = Path.Combine(FileSystem.AppDataDirectory, "appsettings.json");
// Másold a fájlt a Raw erőforrásokból az AppDataDirectory-ba, ha még nincs ott