From f022d288088fdb9d1de7fb418acdfc8b4ce7f8e6 Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Thu, 9 Nov 2023 23:12:42 +0200 Subject: [PATCH] Fix --- src/BUTR.Site.NexusMods.Server/Contexts/BaseAppDbContext.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/BUTR.Site.NexusMods.Server/Contexts/BaseAppDbContext.cs b/src/BUTR.Site.NexusMods.Server/Contexts/BaseAppDbContext.cs index 4aa18f2a..cf035e6a 100644 --- a/src/BUTR.Site.NexusMods.Server/Contexts/BaseAppDbContext.cs +++ b/src/BUTR.Site.NexusMods.Server/Contexts/BaseAppDbContext.cs @@ -2,6 +2,7 @@ using BUTR.Site.NexusMods.Server.Options; using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Diagnostics; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.Extensions.Options; @@ -148,6 +149,7 @@ protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) .Build(); optionsBuilder + .ConfigureWarnings(x => x.Ignore(CoreEventId.ManyServiceProvidersCreatedWarning)) .ReplaceService() .UseNpgsql(dataSource, opt => {