Skip to content

Commit f0e90e2

Browse files
authored
Remove duplicate CacheConnectionStringProperties calls (#683)
1 parent dbbcde8 commit f0e90e2

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ private static readonly ConcurrentDictionary<string, IList<string>> _ColumnEncry
114114
public SqlConnection(string connectionString) : this()
115115
{
116116
ConnectionString = connectionString; // setting connection string first so that ConnectionOption is available
117-
CacheConnectionStringProperties();
118117
}
119118

120119
/// <include file='../../../../../../../doc/snippets/Microsoft.Data.SqlClient/SqlConnection.xml' path='docs/members[@name="SqlConnection"]/ctorConnectionStringCredential/*' />
@@ -157,7 +156,6 @@ public SqlConnection(string connectionString, SqlCredential credential) : this()
157156
// else
158157
// credential == null: we should not set "Credential" as this will do additional validation check and
159158
// checking pool groups which is not necessary. All necessary operation is already done by calling "ConnectionString = connectionString"
160-
CacheConnectionStringProperties();
161159
}
162160

163161
private SqlConnection(SqlConnection connection)

src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlConnection.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ public SqlConnection(string connectionString, SqlCredential credential) : this()
336336
// else
337337
// credential == null: we should not set "Credential" as this will do additional validation check and
338338
// checking pool groups which is not necessary. All necessary operation is already done by calling "ConnectionString = connectionString"
339-
CacheConnectionStringProperties();
340339
}
341340

342341
private SqlConnection(SqlConnection connection)
@@ -3231,5 +3230,3 @@ internal struct MEMMAP
32313230
internal byte[] rgbData;
32323231
}
32333232
} // Microsoft.Data.SqlClient namespace
3234-
3235-

0 commit comments

Comments
 (0)