From b76e07d8a73936fd9b4ecd884e1f323e061f7c2e Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Mon, 24 Jan 2022 22:55:32 +0800 Subject: [PATCH] Update TestConfig.cs --- tests/ServiceStack.OrmLite.Tests.Setup/TestConfig.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/ServiceStack.OrmLite.Tests.Setup/TestConfig.cs b/tests/ServiceStack.OrmLite.Tests.Setup/TestConfig.cs index 0b59c49f2..0fd4a7b10 100644 --- a/tests/ServiceStack.OrmLite.Tests.Setup/TestConfig.cs +++ b/tests/ServiceStack.OrmLite.Tests.Setup/TestConfig.cs @@ -233,7 +233,7 @@ public partial class TestConfig { public const bool EnableDebugLogging = false; - public static Dictionary DialectProviders = new Dictionary + public static Dictionary DialectProviders = new() { [Dialect.Sqlite] = SqliteDialect.Provider, [Dialect.SqlServer] = SqlServerDialect.Provider, @@ -355,6 +355,8 @@ public static OrmLiteConnectionFactory InitDbFactory() var dialect = dialectConnection.Key.Item1; if (!DialectProviders.TryGetValue(dialect, out var dialectProvider)) continue; + + dbFactory.RegisterConnection(DialectContext.Key(dialectConnection.Key), dialectConnection.Value, dialectProvider); } foreach (var provider in DialectProviders)