- 优化 IAdo.ConnectionString 使用 UseConnectionFactory 时值为 NULL 的问题;

This commit is contained in:
2881099
2023-01-16 19:16:56 +08:00
parent 32e45dd925
commit 33f11a2066
33 changed files with 131 additions and 32 deletions

View File

@ -19,7 +19,9 @@ namespace FreeSql.ClickHouse
base._util = util;
if (connectionFactory != null)
{
MasterPool = new FreeSql.Internal.CommonProvider.DbConnectionPool(DataType.ClickHouse, connectionFactory);
var pool = new FreeSql.Internal.CommonProvider.DbConnectionPool(DataType.ClickHouse, connectionFactory);
ConnectionString = pool.TestConnection?.ConnectionString;
MasterPool = pool;
return;
}
if (!string.IsNullOrEmpty(masterConnectionString))