@@ -31,18 +31,30 @@ override public DbProviderFactory ProviderFactory
3131 }
3232 }
3333
34- override protected DbConnectionInternal CreateConnection ( DbConnectionOptions options , DbConnectionPoolKey poolKey , object poolGroupProviderInfo , IDbConnectionPool pool , DbConnection owningConnection )
34+ protected override DbConnectionInternal CreateConnection (
35+ DbConnectionOptions options ,
36+ DbConnectionPoolKey poolKey ,
37+ DbConnectionPoolGroupProviderInfo poolGroupProviderInfo ,
38+ IDbConnectionPool pool ,
39+ DbConnection owningConnection )
3540 {
3641 return CreateConnection ( options , poolKey , poolGroupProviderInfo , pool , owningConnection , userOptions : null ) ;
3742 }
3843
39- override protected DbConnectionInternal CreateConnection ( DbConnectionOptions options , DbConnectionPoolKey poolKey , object poolGroupProviderInfo , IDbConnectionPool pool , DbConnection owningConnection , DbConnectionOptions userOptions )
44+ protected override DbConnectionInternal CreateConnection (
45+ DbConnectionOptions options ,
46+ DbConnectionPoolKey poolKey ,
47+ DbConnectionPoolGroupProviderInfo poolGroupProviderInfo ,
48+ IDbConnectionPool pool ,
49+ DbConnection owningConnection ,
50+ DbConnectionOptions userOptions )
4051 {
4152 SqlConnectionString opt = ( SqlConnectionString ) options ;
4253 SqlConnectionPoolKey key = ( SqlConnectionPoolKey ) poolKey ;
4354 SessionData recoverySessionData = null ;
55+
4456 SqlConnection sqlOwningConnection = owningConnection as SqlConnection ;
45- bool applyTransientFaultHandling = sqlOwningConnection != null ? sqlOwningConnection . _applyTransientFaultHandling : false ;
57+ bool applyTransientFaultHandling = sqlOwningConnection ? . _applyTransientFaultHandling ?? false ;
4658
4759 SqlConnectionString userOpt = null ;
4860 if ( userOptions != null )
@@ -51,7 +63,7 @@ override protected DbConnectionInternal CreateConnection(DbConnectionOptions opt
5163 }
5264 else if ( sqlOwningConnection != null )
5365 {
54- userOpt = ( SqlConnectionString ) ( sqlOwningConnection . UserConnectionOptions ) ;
66+ userOpt = ( SqlConnectionString ) sqlOwningConnection . UserConnectionOptions ;
5567 }
5668
5769 if ( sqlOwningConnection != null )
@@ -138,13 +150,14 @@ override protected DbConnectionInternal CreateConnection(DbConnectionOptions opt
138150 instanceName ,
139151 userInstance : false ,
140152 setEnlistValue : null ) ; // Do not modify the enlist value
153+ poolGroupProviderInfo = null ;
141154 }
142155
143156 return new SqlInternalConnectionTds (
144157 identity ,
145158 opt ,
146159 key . Credential ,
147- providerInfo : null ,
160+ poolGroupProviderInfo ,
148161 newPassword : string . Empty ,
149162 newSecurePassword : null ,
150163 redirectedUserInstance ,
@@ -163,7 +176,7 @@ protected override DbConnectionOptions CreateConnectionOptions(string connection
163176 return result ;
164177 }
165178
166- override internal DbConnectionPoolProviderInfo CreateConnectionPoolProviderInfo ( DbConnectionOptions connectionOptions )
179+ internal override DbConnectionPoolProviderInfo CreateConnectionPoolProviderInfo ( DbConnectionOptions connectionOptions )
167180 {
168181 DbConnectionPoolProviderInfo providerInfo = null ;
169182
@@ -233,12 +246,12 @@ override protected DbMetaDataFactory CreateMetaDataFactory(DbConnectionInternal
233246 internalConnection . ServerVersion ) ; //internalConnection.ServerVersionNormalized);
234247 }
235248
236- override internal DbConnectionPoolGroupProviderInfo CreateConnectionPoolGroupProviderInfo ( DbConnectionOptions connectionOptions )
249+ internal override DbConnectionPoolGroupProviderInfo CreateConnectionPoolGroupProviderInfo (
250+ DbConnectionOptions connectionOptions )
237251 {
238252 return new SqlConnectionPoolGroupProviderInfo ( ( SqlConnectionString ) connectionOptions ) ;
239253 }
240254
241-
242255 internal static SqlConnectionString FindSqlConnectionOptions ( SqlConnectionPoolKey key )
243256 {
244257 SqlConnectionString connectionOptions = ( SqlConnectionString ) SingletonInstance . FindConnectionOptions ( key ) ;
0 commit comments