refactor(Infrastructure): update Executor, Migrations and Repositories to be compiled only in .NET

This commit is contained in:
2025-10-01 10:36:57 +02:00
parent 167ea1444b
commit 12063f36de
23 changed files with 2344 additions and 2298 deletions

View File

@@ -1,4 +1,5 @@
using EnvelopeGenerator.Application.Common.Configurations;
#if NET
using EnvelopeGenerator.Application.Common.Configurations;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
using Microsoft.Extensions.Configuration;
@@ -22,10 +23,10 @@ namespace EnvelopeGenerator.Infrastructure
// create DbTriggerParams
var triggerLists = config.GetSection("DbTriggerParams").Get<Dictionary<string, List<string>>>();
var dbTriggerParams = new DbTriggerParams();
if(triggerLists is not null)
if (triggerLists is not null)
foreach (var triggerList in triggerLists)
{
if(triggerList.Value.Count == 0)
if (triggerList.Value.Count == 0)
continue; // Skip empty trigger lists
var tableName = triggerList.Key;
@@ -43,4 +44,5 @@ namespace EnvelopeGenerator.Infrastructure
return dbContext;
}
}
}
}
#endif