fix(dbcontext): add conditional nullable annotation for ILogger parameter on .NET builds

This commit is contained in:
tekh 2025-10-01 13:04:44 +02:00
parent 53a656f6ee
commit 9472322c1d

View File

@ -25,7 +25,11 @@ namespace EnvelopeGenerator.Infrastructure
public class EGDbContext : EGDbContextBase
{
public EGDbContext(DbContextOptions<EGDbContext> options, IOptions<DbTriggerParams> triggerParamOptions, ILogger<EGDbContext>? logger = null) : base(options, triggerParamOptions, logger)
public EGDbContext(DbContextOptions<EGDbContext> options, IOptions<DbTriggerParams> triggerParamOptions, ILogger<EGDbContext>
#if NET
?
#endif
logger = null) : base(options, triggerParamOptions, logger)
{
}
}