dotnet / SqlClient

Microsoft.Data.SqlClient provides database connectivity to SQL Server for .NET applications.
MIT License
842 stars 281 forks source link

Merge DbConnectionPool #2812

Open edwardneal opened 1 month ago

edwardneal commented 1 month ago

Contributes to #1261.

DbConnectionPool is almost identical between .NET Core and Framework. When combined with #2410, this should mean that everything in the ProviderBase folders besides DbConnectionPoolCounters can be merged.

Core differences here:

More generally, there are a lot of conditionally-compiled blocks to enable the differing metrics implementations. Hopefully these will cease to exist when the OTel metrics are implemented.