From 6db52e795ea86b643b8648c6baaba7510f36eabc Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Sat, 13 Nov 2021 17:46:19 +0100 Subject: [PATCH] Implement ShouldUseSameServiceProvider properly. Hopefully this fixes EFCore memory leaks. --- Content.Server.Database/SnakeCaseNaming.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server.Database/SnakeCaseNaming.cs b/Content.Server.Database/SnakeCaseNaming.cs index f19c386d96..959adb850d 100644 --- a/Content.Server.Database/SnakeCaseNaming.cs +++ b/Content.Server.Database/SnakeCaseNaming.cs @@ -37,7 +37,7 @@ namespace Content.Server.Database public override bool ShouldUseSameServiceProvider(DbContextOptionsExtensionInfo other) { - return false; + return other is ExtensionInfo; } public override void PopulateDebugInfo(IDictionary debugInfo)