- 优化 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

@ -18,6 +18,7 @@ namespace FreeSql.Custom
if (connectionFactory != null)
{
var pool = new FreeSql.Internal.CommonProvider.DbConnectionPool(DataType.SqlServer, connectionFactory);
ConnectionString = pool.TestConnection?.ConnectionString;
MasterPool = pool;
_CreateCommandConnection = pool.TestConnection;
_CreateParameterCommand = CreateCommand();